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)))