General refactor & docstring updates

This commit is contained in:
Henrik Lissner 2017-10-05 16:17:52 +02:00
parent 11dc929355
commit cd7ab060e0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
5 changed files with 17 additions and 27 deletions

View file

@ -87,8 +87,9 @@ they are absolute."
(defun doom|autoload-project-mode ()
"Auto-enable projects listed in `doom-project', which is meant to be set from
.dir-locals.el files."
(dolist (mode doom-project)
(funcall mode)))
(cl-loop for mode in doom-project
unless (symbol-value mode)
do (funcall mode)))
(add-hook 'after-change-major-mode-hook #'doom|autoload-project-mode)
(defmacro def-project-mode! (name &rest plist)