aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-08-16 22:37:25 -0500
committerJesús <heckyel@hyperbola.info>2019-08-16 22:37:25 -0500
commit8a91d329a80516af50ff62fa6220f6b458deccd0 (patch)
tree5e47e7e55db050754335c26a0156a53096712093
parent937fc7f051a055585195e89b47d90ac61a863794 (diff)
downloademacs-personal-8a91d329a80516af50ff62fa6220f6b458deccd0.tar.lz
emacs-personal-8a91d329a80516af50ff62fa6220f6b458deccd0.tar.xz
emacs-personal-8a91d329a80516af50ff62fa6220f6b458deccd0.zip
Added twig support
-rw-r--r--modules/init-editing-utils.el5
-rw-r--r--modules/init-web-mode.el1
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/init-editing-utils.el b/modules/init-editing-utils.el
index 30bdb1f..02e0109 100644
--- a/modules/init-editing-utils.el
+++ b/modules/init-editing-utils.el
@@ -41,6 +41,11 @@
(set-default 'truncate-lines t)
(setq show-trailing-whitespace nil)
+;;---------------------------------------------------------------------------
+;; XML
+;;--------------------------------------------------------------------------
+(setq nxml-child-indent 4 nxml-attribute-indent 4)
+
;;----------------------------------------------------------------------------
;; Some basic preferences
;;----------------------------------------------------------------------------
diff --git a/modules/init-web-mode.el b/modules/init-web-mode.el
index 47937ad..5606522 100644
--- a/modules/init-web-mode.el
+++ b/modules/init-web-mode.el
@@ -9,6 +9,7 @@
("\\.djhtml\\'" . web-mode)
("\\.blade.php\\'" . web-mode)
("\\.tpl\\'" . web-mode)
+ ("\\.twig\\'" . web-mode)
("\\.jsp\\'" . web-mode)
("\\.gsp\\'" . web-mode)
("\\.scss\\'" . web-mode)