Emacs: Xah Emacs Lisp Mode

By Xah Lee. Date: . Last updated: .

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

xah elisp mode 2017 01 03
emacs lisp mode 2017 01 03



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.

If you have a question, put $5 at patreon and message me on xah discord.
Or support me by Buy Xah Emacs Tutorial