General refactor for consistency & idempotency

Also updated comments
This commit is contained in:
Henrik Lissner 2018-05-18 01:21:09 +02:00
parent 50401f6c09
commit 80adb9c1f6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
17 changed files with 48 additions and 40 deletions

View file

@ -225,7 +225,7 @@ Body forms can access the hook's arguments through the let-bound variable
(,mode 1)))
,@(if (and modes (listp modes))
(cl-loop for hook in (doom--resolve-hook-forms modes)
collect `(add-hook ',hook ',hook-name))
collect `(add-hook ',hook #',hook-name))
`((add-hook 'after-change-major-mode-hook ',hook-name))))))
(match
`(map-put doom-auto-minor-mode-alist ,match ',mode))