summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-12-24 16:35:15 +0000
committerAlan Pearce2014-12-24 16:35:15 +0000
commitecb5a69b89c6357fecee4401f8a3ae9d9e07b51d (patch)
tree14833543c669ba5ef43083566ab87ef6d1b6671b
parented02bd17f9efa86b1f3ec525b079f0597efc923a (diff)
downloaddotfiles-ecb5a69b89c6357fecee4401f8a3ae9d9e07b51d.tar.lz
dotfiles-ecb5a69b89c6357fecee4401f8a3ae9d9e07b51d.tar.zst
dotfiles-ecb5a69b89c6357fecee4401f8a3ae9d9e07b51d.zip
Emacs: Configure twig tag pairs
-rw-r--r--tag-emacs/emacs.d/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index b7ebbef..16bfb9f 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1122,6 +1122,9 @@ symbol, not word, as I need this for programming the most."
             (bind-key "M-<down>" #'sp-splice-sexp-killing-forward sp-keymap)
             (bind-key "C-M-S-k" #'sp-kill-hybrid-sexp sp-keymap)
             (bind-key "C-S-<right>" #'sp-slurp-hybrid-sexp sp-keymap)
+            (sp-with-modes '(web-mode twig-mode)
+              (sp-local-pair "{%" "%}")
+              (sp-local-pair "{{" "}}"))
             (show-smartparens-global-mode t)
             (smartparens-global-strict-mode t)
             (add-hook 'lisp-mode-common-hook #'turn-off-smartparens-mode)))