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

@ -6,7 +6,7 @@
MODES should be one major-mode symbol or a list of them."
(dolist (mode (doom-enlist modes))
(let ((def-name (intern (format "+company--init-%s" mode))))
(let ((def-name (intern (format "+company|init-%s" mode))))
(fset def-name
(lambda () (when (or (eq major-mode mode)
(and (boundp mode) (symbol-value mode)))