From f0643fdce54e5172a369e29d00356cb9bc4f6c8b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 4 Jul 2016 08:17:30 +0200 Subject: Emacs: Fix smartparens in web-mode --- tag-emacs/emacs.d/init.org | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index c13011c..d89022e 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1960,9 +1960,8 @@ of them as well. web-mode-comment-style 2 web-mode-enable-auto-pairing nil web-mode-enable-auto-quoting nil) - (with-eval-after-load 'smartparens - (sp-with-modes sp--html-modes - (sp-local-pair "<%" "%>"))))) + (sp-with-modes sp--html-modes + (sp-local-pair "<%" "%>")))) #+END_SRC I derived a mode for twig, in order to use its =mode-hook=. @@ -2241,7 +2240,7 @@ nice as the real version (bind-key "M-" #'sp-splice-sexp-killing-forward smartparens-mode-map) (bind-key "C-M-S-k" #'sp-kill-hybrid-sexp smartparens-mode-map) (bind-key "C-S-" #'sp-slurp-hybrid-sexp smartparens-mode-map) - (sp-with-modes '(web-mode twig-mode) + (sp-with-modes '(twig-mode) (sp-local-pair "{%" "%}") (sp-local-pair "{{" "}}")) (show-smartparens-global-mode t) -- cgit 1.4.1