Added YASnippet support.

This commit is contained in:
Micheal Smith
2025-11-06 22:28:38 -06:00
parent 5651db78c0
commit f5e15b2784
3 changed files with 49 additions and 0 deletions

23
config/snippets.org Normal file
View File

@@ -0,0 +1,23 @@
* Snippets
Snippets can be helpful in many situations. However they can also get in the way.
This is my *attempt* at making them helpful in most cases.
** YASnippet
[[https://github.com/joaotavora/yasnippet?tab=readme-ov-file][YASnippet]] is a template system for Emacs. It allows you to type an abbreviation
and automatically expand it into function templates.
#+BEGIN_SRC emacs-lisp
(use-package yasnippet
:hook (prog-mode . yas-minor-mode))
#+END_SRC
For now I'm just using [[https://github.com/AndreaCrotti/yasnippet-snippets][YASnippet-snippets]] to provide all of my snippets. Custom
ones may be added in the future.
#+BEGIN_SRC emacs-lisp
(use-package yasnippet-snippets
:after (yasnippet)
:init (yas-reload-all))
#+END_SRC