2022-01-23 20:38:27 +01:00
← [[doom-module-index: ][Back to module index ]] ! [[doom-module-issues:::editor snippets ][Issues ]] ↖ [[doom-repo:tree/develop/modules/editor/snippets/ ][Github ]] ± [[doom-suggest-edit: ][Suggest edits ]] ? [[doom-help-modules: ][Help ]]
2021-10-16 01:22:41 +02:00
--------------------------------------------------------------------------------
2022-03-28 15:03:21 +02:00
#+title : :editor snippets
#+subtitle : My elves type so I don't have to
#+created : February 11, 2017
#+since : 2.0.0
2021-10-16 01:22:41 +02:00
* Description :unfold:
This module adds snippet expansions to Emacs, powered by [[doom-package: ][yasnippet ]].
** Maintainers
- [[doom-user: ][@hlissner ]]
[[doom-contrib-maintainer: ][Become a maintainer? ]]
** Module flags
/This module exposes no flags./
** Packages
- [[doom-package: ][yasnippet ]]
- [[doom-package: ][auto-yasnippet ]]
- [[doom-package: ][doom-snippets ]]
2019-01-03 01:52:06 -05:00
** TODO Hacks
2021-10-16 01:22:41 +02:00
#+begin_quote
🔨 This module's hacks haven't been documented yet. [[doom-contrib-module: ][Document them? ]]
#+end_quote
2019-01-03 01:52:06 -05:00
2021-10-16 01:22:41 +02:00
** TODO Changelog
# This section will be machine generated. Don't edit it by hand.
/This module does not have a changelog yet./
2019-01-03 01:52:06 -05:00
2021-10-16 01:22:41 +02:00
* Installation
[[id:01cffea4-3329-45e2-a892-95a384ab2338 ][Enable this module in your ~doom!~ block. ]]
2017-08-21 20:12:25 +02:00
2021-10-16 01:22:41 +02:00
/This module has no external requirements./
2019-07-14 14:43:45 +02:00
2021-10-16 01:22:41 +02:00
* TODO Usage
#+begin_quote
🔨 This module has no usage documentation yet. [[doom-contrib-module: ][Write some? ]]
#+end_quote
* TODO Configuration
#+begin_quote
🔨 /This module's configuration documentation is incomplete./ [[doom-contrib-module: ][Complete it? ]]
#+end_quote
** Disabling the built-in snippets
#+begin_src emacs-lisp
;; in $DOOMDIR/packages.el
2019-07-14 14:43:45 +02:00
(package! doom-snippets :ignore t)
;; If you want to replace it with yasnippet's default snippets
(package! yasnippet-snippets)
2021-10-16 01:22:41 +02:00
#+end_src
2022-01-30 08:42:13 +07:00
** Adding custom snippets
Custom snippets should be added under =$DOOMDIR/snippets/= directory. Refer to [[http://joaotavora.github.io/yasnippet/snippet-development.html ][yasnippet-documentation ]] on how to write snippets.
2021-10-16 01:22:41 +02:00
* Troubleshooting
/There are no known problems with this module./ [[doom-report: ][Report one? ]]
* Frequently asked questions
/This module has no FAQs yet./ [[doom-suggest-faq: ][Ask one? ]]
2017-08-21 20:12:25 +02:00
2021-10-16 01:22:41 +02:00
* TODO Appendix
#+begin_quote
🔨 This module has no appendix yet. [[doom-contrib-module: ][Write one? ]]
#+end_quote