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!"))))

View File

@ -148,7 +148,8 @@ line with a linewise comment.")
'+evil:align :move-point t :ex-arg 'buffer-match :ex-bang t :keep-visual t :suppress-operator t)
;; `evil-collection'
(when (featurep! +everywhere)
(when (and (featurep! +everywhere)
(not doom-reloading-p))
(load! "+everywhere"))
;; Custom evil ex commands