summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-06-26 08:56:37 +0200
committerAlan Pearce2017-06-26 08:56:37 +0200
commit61953fab3d89f33468a854d512a4a8e3c36e258d (patch)
tree3c52867b22e2e10c316a718717df005de37b3906 /emacs
parent25ee213cb3c97ef29431619951596e22e06fe192 (diff)
downloadnixfiles-61953fab3d89f33468a854d512a4a8e3c36e258d.tar.lz
nixfiles-61953fab3d89f33468a854d512a4a8e3c36e258d.tar.zst
nixfiles-61953fab3d89f33468a854d512a4a8e3c36e258d.zip
Emacs: Improve emmet-mode setup
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org5
1 files changed, 3 insertions, 2 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 8cc0a7c3..3d3cb5e0 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -2290,8 +2290,9 @@ frameworks that require multiple nested elements to do anything useful.
   :commands (emmet-mode)
   :diminish (emmet-mode . " >")
   :init (progn
-          (setq emmet-indentation 2)
-          (add-hook 'web-mode-hook #'emmet-mode)
+          (setq emmet-indentation 2
+                emmet-self-closing-tag-style " /")
+          (add-hook 'sgml-mode-hook #'emmet-mode)
           (add-hook 'css-mode-hook #'emmet-mode)))
 #+END_SRC