From 14c90b2e5f89a422f20c631dad6fb1a79499149b Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Sat, 11 Dec 2021 12:46:51 +0100 Subject: [PATCH] Enable smartparens when evaluting elisp in the minibuffer --- README.org | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index aafc0a5..857508f 100644 --- a/README.org +++ b/README.org @@ -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 'text-mode-hook #'turn-on-smartparens-mode) - (add-hook 'emacs-lisp-mode-hook #'turn-on-smartparens-strict-mode) - (add-hook 'ielm-mode-hook #'turn-on-smartparens-strict-mode) - (add-hook 'python-mode-hook #'turn-on-smartparens-strict-mode) + (dolist (hook '(emacs-lisp-mode-hook + eval-expression-minibuffer-setup-hook + ielm-mode-hook + python-mode-hook)) + (add-hook hook #'turn-on-smartparens-mode)) ;; https://xenodium.com/emacs-smartparens-auto-indent/index.html (defun indent-between-pair (&rest _ignored)