- Introduces the +snippets/new (SPC s n) command for creating a new private snippet - Introduces the +snippets/new-lias (SPC s N) command for creating a new private snippet alias, which will invoke another snippet (you will be prompted to select one). This will only work with the emacs-snippets library bundled with Doom Emacs, however, as it depends on its API. - Introduces +snippets/edit (SPC s c) for modifying existing snippets. How this differs from yas-visit-snippet-file is it will copy the contents of built-in snippets into a buffer primed for your private snippets (in DOOMDIR/snippets), while yas-visit-snippet-file will simply open the originating snippet. - Introduces the +snippets/find (SPC s ?), +snippets/find-for-current-mode (SPC s /) and +snippets/find-private (SPC s f) commands for, respectively, finding a snippet file among *all* directories in yas-snippet-dirs, finding a snippet for the current major mode (plus parents), and finding a snippet from among your private library. This opens built-in snippets in read-only mode, but you can press C-c C-e to open it in +snippets/edit. |
||
---|---|---|
.. | ||
autoload | ||
config.el | ||
packages.el | ||
README.org |
editor/snippets
Table of Contents TOC
Description
This module adds snippets to Emacs, powered by yasnippet.
Module Flags
This module exposes no flags.
Plugins
TODO Hacks
Prerequisites
This module has no external dependencies.