diff --git a/core/core-editor.el b/core/core-editor.el index 750133700..d4638d5c6 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -479,8 +479,9 @@ files, so we replace calls to `pp' with the much faster `prin1'." (defun doom-init-smartparens-in-minibuffer-maybe-h () "Enable `smartparens-mode' in the minibuffer, during `eval-expression', `pp-eval-expression' or `evil-ex'." - (when (memq this-command '(eval-expression pp-eval-expression evil-ex)) - (smartparens-mode)))) + (and (memq this-command '(eval-expression pp-eval-expression evil-ex)) + smartparens-global-mode + (smartparens-mode)))) ;; You're likely writing lisp in the minibuffer, therefore, disable these ;; quote pairs, which lisps doesn't use for strings: