Minor refactor & revision across the board

This commit is contained in:
Henrik Lissner 2019-09-03 00:59:17 -04:00
parent 4ce86b06d4
commit 81ee250c09
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
7 changed files with 13 additions and 10 deletions

View file

@ -5,6 +5,6 @@
"Register minor MODES (one mode symbol or a list of them) with yasnippet so it
can have its own snippets category, if the folder exists."
(dolist (mode (doom-enlist modes))
(let ((fn (intern (format "+snippets|register-%s" mode))))
(let ((fn (intern (format "+snippets-register-%s-h" mode))))
(fset fn (lambda () (yas-activate-extra-mode mode)))
(add-hook (intern (format "%s-hook" mode)) fn))))