Prevent non-prefix key errors on doom//refresh

May also help doom/reload
This commit is contained in:
Henrik Lissner 2019-05-12 01:43:06 -04:00
parent 2358dbfc84
commit e5d566ea2a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 8 additions and 2 deletions

View file

@ -4,7 +4,10 @@
;;;###autoload
(defun doom-cli-run (command &rest _args)
(let* ((default-directory doom-emacs-dir)
(when (featurep 'general)
(general-auto-unbind-keys))
(let* ((evil-collection-mode-list nil)
(default-directory doom-emacs-dir)
(buf (get-buffer-create " *bin/doom*"))
(doom-message-backend 'ansi)
(ignore-window-parameters t)
@ -26,6 +29,8 @@
(redisplay)
(doom-dispatch command nil)
(print! (green "\nDone!"))))
(when (featurep 'general)
(general-auto-unbind-keys 'undo))
(message (format! (green "Done!"))))