Conform hook names to conventions

Also minor reformatting & comment corrections.
This commit is contained in:
Henrik Lissner 2018-06-17 02:13:46 +02:00
parent c1b8d6f508
commit 17981d6a61
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
7 changed files with 8 additions and 11 deletions

View file

@ -5,7 +5,7 @@
"Register a minor MODE with yasnippet so it can have its own snippets
category, if the folder exists."
(after! yasnippet
(let ((fn (intern (format "+snippets--register-%s" mode))))
(let ((fn (intern (format "+snippets|register-%s" mode))))
(fset fn (lambda () (+snippets|enable-project-modes mode)))
(add-hook (intern (format "%s-hook" mode)) fn))))