Emacs: Configure twig tag pairs
Alan Pearce alan@alanpearce.co.uk
Wed, 24 Dec 2014 16:35:15 +0000
1 files changed, 3 insertions(+), 0 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-emacs/emacs.d/init.el
@@ -1122,6 +1122,9 @@ (bind-key "M-<up>" #'sp-splice-sexp-killing-backward sp-keymap) (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)))