Emacs: Abbrev and Templates for Emacs Lisp Mode
This page is a set of abbrev and YASnippet templates for
Just install yasnippet. It's part of yasnippet.
you can install yasnippet via MELPA. 〔➤ Emacs: How to Install Packages Using ELPA, MELPA〕
The abbrev list contains ≈78 most frequently used elisp functions. For example:
add-hookhas abbrev “ah”.
search-forwardhas abbrev “sf”.
thing-at-pointhas abbrev “tap”.
Each abbrev is based on first letters of the words in function names.
The YASnippet are for expanding function names to its full syntax and parameters. It contains ≈145 of most frequently used elisp functions.
For example, type
buffer-substring-no-properties , press Tab ↹, then it becomes
(buffer-substring-no-properties START▮ END).
Here's a picture of more examples, when used together with abbrev:
bsnp ▮ ⇓ buffer-substring-no-properties▮ ⇓ (buffer-substring-no-properties START▮ END)
sfr ▮ ⇓ search-forward-regexp▮ ⇓ (search-forward-regexp "▮" &optional BOUND NOERROR COUNT)
If you are not familiar with yasnippet, see: Emacs Templates with YASnippet.
If you are not familiar with emacs's abbrev feature, see: Emacs: Abbrev Mode Tutorial.
You might also try Emacs: Xah Emacs Lisp Mode, which has completion feature builtin.
back to Xah Emacs Packages