diff options
author | Alan Pearce | 2016-06-08 11:08:05 +0200 |
---|---|---|
committer | Alan Pearce | 2016-06-08 11:08:05 +0200 |
commit | a9584465c231f8cd7506135793f64d9afcfb9033 (patch) | |
tree | 18dbf708b8cf5698b0932f3e40a4ea68660d2dd3 /tag-emacs/emacs.d | |
parent | a45524199f496d2c11d495df7a4309639ecbc7f0 (diff) | |
download | nixfiles-a9584465c231f8cd7506135793f64d9afcfb9033.tar.lz nixfiles-a9584465c231f8cd7506135793f64d9afcfb9033.tar.zst nixfiles-a9584465c231f8cd7506135793f64d9afcfb9033.zip |
Emacs: Pair <% %> in web-mode
Diffstat (limited to 'tag-emacs/emacs.d')
-rw-r--r-- | tag-emacs/emacs.d/init.org | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index aa3fb1dd..24e3e289 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -1934,7 +1934,10 @@ of them as well. web-mode-style-padding 0 web-mode-script-padding 0 web-mode-comment-style 2 - web-mode-enable-auto-pairing nil)) + web-mode-enable-auto-pairing nil + (with-eval-after-load 'smartparens + (sp-with-modes sp--html-modes + (sp-local-pair "<%" "%>"))))) #+END_SRC I derived a mode for twig, in order to use its =mode-hook=. |