Add doom//reload command (experimental)

This commit is contained in:
Henrik Lissner 2018-05-13 17:04:15 +02:00
parent 370dacf2a2
commit 88082c0dc9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -607,6 +607,12 @@ loads MODULE SUBMODULE's packages.el file."
;; Commands ;; Commands
;; ;;
(defun doom//reload ()
"Reload your Doom config."
(interactive)
(load (concat doom-emacs-dir "init.el") nil nil 'nosuffix)
(doom//reload-load-path))
(defun doom-packages--read-if-cookies (file) (defun doom-packages--read-if-cookies (file)
"Returns the value of the ;;;###if predicate form in FILE." "Returns the value of the ;;;###if predicate form in FILE."
(with-temp-buffer (with-temp-buffer