doomemacs/modules/feature/snippets
2017-12-10 14:49:52 -05:00
..
autoload Fix obsolete (when|if)-let messages in Emacs 26 2017-12-10 14:49:52 -05:00
config.el Fix unindexed file-templates on first load of yasnippet 2017-10-23 20:07:54 +02:00
packages.el Revert macros to ...! name convention (elisp doesn't like @...) 2017-02-23 00:06:12 -05:00
README.org Add READMEs for several modules 2017-08-21 21:51:29 +02:00

:feature snippets

This module adds snippets to Emacs, powered by yasnippet.

Table of Contents   TOC

Install

There are no extra dependencies for this module.

By default, this module uses the snippet library included with yasnippet.

For the best experience, I'd suggest installing mine from https://github.com/hlissner/emacs-snippets they have been tailored specifically for Doom.

  1. Clone the repo to your private module:

    git clone https://github.com/hlissner/emacs-snippets ~/.emacs.d/modules/private/$(whoami)/snippets
  2. Tell yasnippet where to look for them:

    ;; modules/private/{USERNAME}/config.el
    (after! yasnippet
      (setq yas-snippet-dirs
            (append (list (expand-file-name "snippets/" (file-name-directory load-file-name)))
                    (delq 'yas-installed-snippets-dir yas-snippet-dirs))))