Enable smartparens in the minubuffer during eval-expression

This commit is contained in:
Bozhidar Batsov 2013-09-04 12:14:43 +03:00
parent 06d0c0c6ce
commit 98e453c640

View file

@ -94,6 +94,13 @@ Start `ielm' if it's not already running."
(dolist (hook '(emacs-lisp-mode-hook ielm-mode-hook))
(add-hook hook 'elisp-slime-nav-mode))
(defun conditionally-enable-smartparens-mode ()
"Enable `smartparens-mode' in the minibuffer, during `eval-expression'."
(if (eq this-command 'eval-expression)
(smartparens-mode 1)))
(add-hook 'minibuffer-setup-hook 'conditionally-enable-smartparens-mode)
(provide 'prelude-emacs-lisp)
;;; prelude-emacs-lisp.el ends here