yasnippet is yet another snippet expansion system for Emacs. It is inspired by TextMate’s templating syntax.
- watch the video on YouTube
- see the intro and tutorial
load the yasnippet bundle
(add-to-list 'load-path (expand-file-name elisp-source-dir "yasnippet"))
(require 'yasnippet)
load the snippets defined in the ./snippets/
directory
(yas/load-directory (expand-file-name "snippets" dotfiles-dir))