Give up enabling smartparens in the eval-expression minibuffer

This commit is contained in:
Gerard Vermeulen 2022-04-18 18:46:30 +02:00
parent d706bf7b29
commit 8a3c829ad6

View File

@ -3111,19 +3111,15 @@ contrary to for instance [[https://github.com/Fanael/rainbow-delimiters#readme][
#+name: lst:configure-smartparens
#+begin_src emacs-lisp
(with-eval-after-load 'emacs
;; To disables pairing of the quote character for lisp modes,
;; require smartparens-config instead of smartparens.
;; Require `smartparens-config' instead of `smartparens' to disable
;; pairing of the quote character for lisp modes,
(when (require 'smartparens-config nil 'noerror)
(custom-set-variables
'(sp-base-key-bindings 'sp)
'(sp-override-key-bindings '(("C-(" . sp-backward-barf-sexp)
("C-)" . sp-forward-slurp-sexp))))
;; Hook on the specific `eval-expression-minibuffer-setup-hook'
;; and not on the general `minibuffer-setup-hook'.
(dolist (hook '(eval-expression-minibuffer-setup-hook
prog-mode-hook
text-mode-hook))
(dolist (hook '(prog-mode-hook text-mode-hook))
(add-hook hook #'smartparens-mode))
(dolist (hook '(emacs-lisp-mode-hook