I love Emacs' paredit-mode, but I miss it very sorely when doing eval-expression
(M-:
). How can I have paredit in the minibuffer when doing eval-expression
? Thanks!
Add a function to minibuffer-setup-hook
, like so:
(add-hook 'minibuffer-setup-hook 'conditionally-enable-paredit-mode)
(defun conditionally-enable-paredit-mode ()
"enable paredit-mode during eval-expression"
(if (eq this-command 'eval-expression)
(paredit-mode 1)))
Add function paredit-mode
to eval-expression-minibuffer-setup-hook
, like so
(add-hook 'eval-expression-minibuffer-setup-hook #'paredit-mode)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With