Enable smartparens in eval-expression
This is experimental, so we can have delimiter/quote autopairing while we write lisp into eval-expression.
This commit is contained in:
parent
b656e68bc3
commit
c81304d18b
2 changed files with 7 additions and 1 deletions
|
@ -151,6 +151,12 @@ fundamental-mode) for performance sake."
|
|||
(add-hook 'evil-replace-state-entry-hook #'turn-off-smartparens-mode)
|
||||
(add-hook 'evil-replace-state-exit-hook #'turn-on-smartparens-mode)
|
||||
|
||||
(defun doom|init-smartparens-in-eval-expression ()
|
||||
"Enable `smartparens-mode' in the minibuffer, during `eval-expression'."
|
||||
(when (eq this-command 'eval-expression)
|
||||
(smartparens-mode)))
|
||||
(add-hook 'minibuffer-setup-hook #'doom|init-smartparens-in-eval-expression)
|
||||
|
||||
(sp-local-pair '(xml-mode nxml-mode php-mode) "<!--" "-->"
|
||||
:post-handlers '(("| " "SPC")))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue