Emacs: Fix incorrect nesting
Alan Pearce alan.pearce@spotcap.com
Fri, 10 Jun 2016 18:15:50 +0200
1 files changed, 11 insertions(+), 10 deletions(-)
jump to
M tag-emacs/emacs.d/init.org → tag-emacs/emacs.d/init.org
@@ -1929,16 +1929,17 @@ :mode (("/views/.*\\.php\\'" . web-mode) ("/layouts/.*\\.html\\'" . web-mode) ("/templates/.*\\.php\\'" . web-mode) ("\\.ejs\\'" . web-mode)) - :config (setq web-mode-code-indent-offset 4 - web-mode-css-indent-offset 4 - web-mode-markup-indent-offset 4 - web-mode-style-padding 0 - web-mode-script-padding 0 - web-mode-comment-style 2 - web-mode-enable-auto-pairing nil - (with-eval-after-load 'smartparens - (sp-with-modes sp--html-modes - (sp-local-pair "<%" "%>"))))) + :config (progn + (setq web-mode-code-indent-offset 4 + web-mode-css-indent-offset 4 + web-mode-markup-indent-offset 4 + web-mode-style-padding 0 + web-mode-script-padding 0 + web-mode-comment-style 2 + 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=.