Enable smartparens in the minubuffer during eval-expression
This commit is contained in:
parent
06d0c0c6ce
commit
98e453c640
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue