Auto-unbind non-prefix keys on doom/reload #1431

This commit is contained in:
Henrik Lissner 2019-05-28 16:24:13 -04:00
parent 6c69bf5313
commit c9493038a0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -29,6 +29,7 @@ reloads your package list, and lastly, reloads your private config.el.
Runs `doom-reload-hook' afterwards."
(interactive "P")
(require 'core-cli)
(general-auto-unbind-keys)
(let ((doom-reloading-p t))
(when (getenv "DOOMENV")
(doom-reload-env-file 'force))
@ -41,6 +42,7 @@ Runs `doom-reload-hook' afterwards."
(when (bound-and-true-p doom-packages)
(doom/reload-packages))
(run-hook-wrapped 'doom-reload-hook #'doom-try-run-hook))
(general-auto-unbind-keys t)
(message "Finished!"))
;;;###autoload