From e4f24fd1505268988bc3025ce4ba374198391ccc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 1 May 2020 16:01:21 -0400 Subject: [PATCH] Don't enable smartparens-mode in minibuffer if global mode is off --- core/core-editor.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: