all repos — nixfiles @ f690932f87c905c52ff0fbd90101fb35d17031cb

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

Emacs: add emmet-mode to web-mode-hook
Alan Pearce alan@alanpearce.co.uk
Sun, 29 Sep 2013 14:05:11 +0100
commit

f690932f87c905c52ff0fbd90101fb35d17031cb

parent

1066cf861b650ac1a40e834dc08f48137fc3936a

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -1175,7 +1175,10 @@ :defer t   :config (setq sgml-basic-offset 4))
 
 (use-package emmet-mode
-  :ensure t)
+  :ensure t
+  :config (progn
+            (if (functionp 'web-mode)
+                (add-hook 'web-mode-hook #'emmet-mode))))
 
 (use-package web-mode
   :defer t