Enable smartparens when evaluting elisp in the minibuffer

This commit is contained in:
Gerard Vermeulen 2021-12-11 12:46:51 +01:00
parent eb65da7d71
commit 14c90b2e5f

View File

@ -1083,9 +1083,11 @@ Emacs prevents new users from shooting themselves in the feet.
(add-hook 'prog-mode-hook #'turn-on-smartparens-mode) (add-hook 'prog-mode-hook #'turn-on-smartparens-mode)
(add-hook 'text-mode-hook #'turn-on-smartparens-mode) (add-hook 'text-mode-hook #'turn-on-smartparens-mode)
(add-hook 'emacs-lisp-mode-hook #'turn-on-smartparens-strict-mode) (dolist (hook '(emacs-lisp-mode-hook
(add-hook 'ielm-mode-hook #'turn-on-smartparens-strict-mode) eval-expression-minibuffer-setup-hook
(add-hook 'python-mode-hook #'turn-on-smartparens-strict-mode) ielm-mode-hook
python-mode-hook))
(add-hook hook #'turn-on-smartparens-mode))
;; https://xenodium.com/emacs-smartparens-auto-indent/index.html ;; https://xenodium.com/emacs-smartparens-auto-indent/index.html
(defun indent-between-pair (&rest _ignored) (defun indent-between-pair (&rest _ignored)