all repos — nixfiles @ 61953fab3d89f33468a854d512a4a8e3c36e258d

System and user configuration, managed by nix and home-manager

Emacs: Improve emmet-mode setup
Alan Pearce alan@alanpearce.eu
Mon, 26 Jun 2017 08:56:37 +0200
commit

61953fab3d89f33468a854d512a4a8e3c36e258d

parent

25ee213cb3c97ef29431619951596e22e06fe192

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -2290,8 +2290,9 @@ (use-package emmet-mode   :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