Prevent non-prefix key errors on doom//refresh
May also help doom/reload
This commit is contained in:
parent
2358dbfc84
commit
e5d566ea2a
2 changed files with 8 additions and 2 deletions
|
@ -4,7 +4,10 @@
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom-cli-run (command &rest _args)
|
(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*"))
|
(buf (get-buffer-create " *bin/doom*"))
|
||||||
(doom-message-backend 'ansi)
|
(doom-message-backend 'ansi)
|
||||||
(ignore-window-parameters t)
|
(ignore-window-parameters t)
|
||||||
|
@ -26,6 +29,8 @@
|
||||||
(redisplay)
|
(redisplay)
|
||||||
(doom-dispatch command nil)
|
(doom-dispatch command nil)
|
||||||
(print! (green "\nDone!"))))
|
(print! (green "\nDone!"))))
|
||||||
|
(when (featurep 'general)
|
||||||
|
(general-auto-unbind-keys 'undo))
|
||||||
(message (format! (green "Done!"))))
|
(message (format! (green "Done!"))))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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:align :move-point t :ex-arg 'buffer-match :ex-bang t :keep-visual t :suppress-operator t)
|
||||||
|
|
||||||
;; `evil-collection'
|
;; `evil-collection'
|
||||||
(when (featurep! +everywhere)
|
(when (and (featurep! +everywhere)
|
||||||
|
(not doom-reloading-p))
|
||||||
(load! "+everywhere"))
|
(load! "+everywhere"))
|
||||||
|
|
||||||
;; Custom evil ex commands
|
;; Custom evil ex commands
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue