summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-07-04 08:17:30 +0200
committerAlan Pearce2016-07-04 08:17:43 +0200
commitf0643fdce54e5172a369e29d00356cb9bc4f6c8b (patch)
treebc35c5678001fdab1a2861a34daad85fae9ad97e
parent4409f5fcef18a2d9a385f21422aaba863485429c (diff)
downloaddotfiles-f0643fdce54e5172a369e29d00356cb9bc4f6c8b.tar.lz
dotfiles-f0643fdce54e5172a369e29d00356cb9bc4f6c8b.tar.zst
dotfiles-f0643fdce54e5172a369e29d00356cb9bc4f6c8b.zip
Emacs: Fix smartparens in web-mode
-rw-r--r--tag-emacs/emacs.d/init.org7
1 files 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-<down>" #'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-<right>" #'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)