Don't enable smartparens-mode in minibuffer if global mode is off
This commit is contained in:
parent
03ecfed1a7
commit
e4f24fd150
1 changed files with 3 additions and 2 deletions
|
@ -479,8 +479,9 @@ files, so we replace calls to `pp' with the much faster `prin1'."
|
||||||
(defun doom-init-smartparens-in-minibuffer-maybe-h ()
|
(defun doom-init-smartparens-in-minibuffer-maybe-h ()
|
||||||
"Enable `smartparens-mode' in the minibuffer, during `eval-expression',
|
"Enable `smartparens-mode' in the minibuffer, during `eval-expression',
|
||||||
`pp-eval-expression' or `evil-ex'."
|
`pp-eval-expression' or `evil-ex'."
|
||||||
(when (memq this-command '(eval-expression pp-eval-expression evil-ex))
|
(and (memq this-command '(eval-expression pp-eval-expression evil-ex))
|
||||||
(smartparens-mode))))
|
smartparens-global-mode
|
||||||
|
(smartparens-mode))))
|
||||||
|
|
||||||
;; You're likely writing lisp in the minibuffer, therefore, disable these
|
;; You're likely writing lisp in the minibuffer, therefore, disable these
|
||||||
;; quote pairs, which lisps doesn't use for strings:
|
;; quote pairs, which lisps doesn't use for strings:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue