From ecb5a69b89c6357fecee4401f8a3ae9d9e07b51d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 24 Dec 2014 16:35:15 +0000 Subject: Emacs: Configure twig tag pairs --- tag-emacs/emacs.d/init.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index b7ebbefc..16bfb9f2 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-" #'sp-splice-sexp-killing-forward sp-keymap) (bind-key "C-M-S-k" #'sp-kill-hybrid-sexp sp-keymap) (bind-key "C-S-" #'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))) -- cgit 1.4.1