Emacs Lisp is the extension language for the GNU Emacs text editor, and in fact, most of the functionality of Emacs is implemented using Emacs Lisp. Users generally customize Emacs' behavior by adding Emacs Lisp statements to their .emacs, or writing separate packages.
4
votes
2answers
190 views
Emacs column alignment command
I'm making my first steps in ELisp programming and I want to know is there a better solution for this problem:
I have a file with two columns, that are separated by one or more spaces, ex.:
One 1
...
3
votes
2answers
119 views
Combinations of list elements
It was written in Emacs Lisp and requires Common Lisp loop facility.
Can this code be improved? Did I hit any anti-patterns along the way?
(defun combos (list)
(let* ((a (car list))
(d ...
7
votes
1answer
152 views
ELisp function to allow file renaming in Emacs
As a disclaimer, this is the first function I have EVER written in Lisp or ELisp. Please, bash it as much as you would any other piece, but don't judge me for it please! :)
So, I realized I wanted a ...
2
votes
1answer
82 views
Keys in mode maps
I noticed a pattern in some elisp modes I was putting together:
(let ((map (make-sparse-keymap)))
(define-key map KEY 'FN)
...
(setq FOO map))
so I wrote up the following macro
(defmacro ...
10
votes
1answer
335 views
Minor mode for blog writing in HTML
This is a collection of reasonably useful functions I put together for writing my blog.
(require 'htmlize)
(defvar blog-mode-map nil
"Keymap for blog minor mode")
(unless blog-mode-map
(let ...
11
votes
1answer
706 views
Emacs Etags Shortcut Functions
A few functions to let me manage TAGS files more easily. Typically, my projects contain at least one sub-folder. I got sick of manually updating, so I wrote this to help me update a single TAGS file ...