Give up enabling smartparens in the eval-expression minibuffer
This commit is contained in:
parent
d706bf7b29
commit
8a3c829ad6
10
README.org
10
README.org
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user