Emacs: Xah Elisp Mode

By Xah Lee. Date: . Last updated: .

xah-elisp-mode.el is a major mode for emacs lisp.

xah-elisp-mode vs emacs-lisp-mode 2021-08-02 3tTfw
xah-elisp-mode vs emacs-lisp-mode 2021-08-02


Goto paypal.com , send $19 to Xah@XahLee.org , and put in message “xah elisp mode”. (be sure to include your correct email address. I need that to send it to you.)


No dependency on third-party package. Only require bare GNU emacs.


There are 100+ abbrevs, and ~440 function templates.

Each abbrev is 1 to 4 letters. Abbrev expands to full function name, then it expands to function template of that function.

For example, here's some of the single-letter abbrevs:

type “d”, press space, it become “defun”, press space again, and it becomes

(defun ▮ ()
  (let (VAR)


Alt+x list-abbrevs to see the full list.

Yasnippt, Auto-Complete, Company Mode

xah-elisp-mode is designed to not need yasnippt or company-mode.