Tag Archives: Emacs-lisp

Drawing Key Sequences In Emacs (Updated)

This is a sad story of my HTML ineptitude but one in which I eventually find the right solution. I’ve written several times (here, here, and here) about how I implemented Xah Lee’s trick of representing key sequences in a … Continue reading

Posted in General | Tagged , | 1 Comment

A New Trick For Marking Up Key Sequences in Emacs

Frozenlock left a comment to an old post of mine about Marking Up Key Sequences For HTML. He said he liked the way Xah Lee and I mark up Emacs keys sequences but that he didn’t like having to write … Continue reading

Posted in Blogging | Tagged , | 5 Comments

Using The Emacs save-restriction Special Form

Emacs has the ability to “narrow” a buffer to a region thereby making the parts of the buffer outside the region invisible. The invisible part of the buffer is completely inaccessible: you can’t move into it, you can’t change it, … Continue reading

Posted in Programming | Tagged , | 2 Comments

Applying and And or In Emacs

Zach Beane has a nice Common Lisp tip about applying and. The problem that the tip addresses is how to apply and to a list of values to test that they are all true. One might think that you could … Continue reading

Posted in Programming | Tagged , | 3 Comments

Multiplication Table In Emacs Revisited

Yesterday, I wrote about generating a 10 × 10 multiplication table in Emacs Lisp. The solution I gave involved using the dolist macro with a list of the numbers 1–10 like this (dolist (r ‘(1 2 3 4 5 6 … Continue reading

Posted in Programming | Tagged , | 2 Comments

Multiplication Table In Emacs Lisp

Xah Lee saw my post about Tim Visher’s video on building a multiplication table in Emacs and decided to experiment. Visher’s video was in the context of VimGolf where the goal was to build the table in the minimum number … Continue reading

Posted in Programming | Tagged , | 10 Comments

Eval And Replace In Emacs

I was watching another of Tim Visher’s VimGolf videos in which he builds a multiplication table by the clever use of keyboard macros. What got my attention, however, was his use of the function eval-and-replace that evaluates the sexp preceding … Continue reading

Posted in Programming | Tagged , | 10 Comments

Using Emacs To Convert Notes For Deft

Yesterday I wrote about Vivek Haldar’s Deft patch that allowed him to integrate his previous notes into Deft. Recall that Deft uses the first line of a note as its subject and names the file for a note deft-XXX whereas … Continue reading

Posted in Programming | Tagged | Leave a comment

Inserting Quotation Marks In Emacs Revisited

The other day, I wrote about Inserting Quotation Marks In Emacs Org Mode and I wrote a little bit of elisp to insert \ldquo{}\rdquo in the buffer and then place the point between the two quote commands. I remarked at … Continue reading

Posted in Programming | Tagged , | 4 Comments

The Emacs interactive Special Form

Xah Lee has an interesting post that taught me something I already knew. The problem that Lee deals with is how to write an Emacs command (that is, a function callable by, say, 【Meta+x】 and the function name) that is … Continue reading

Posted in Programming | Tagged | Leave a comment