summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-09-29 14:05:11 +0100
committerAlan Pearce2013-09-29 14:05:11 +0100
commitf690932f87c905c52ff0fbd90101fb35d17031cb (patch)
treedb0872468fb17bf2345471ee2f84d6e781e2a4bb /emacs
parent1066cf861b650ac1a40e834dc08f48137fc3936a (diff)
downloaddotfiles-f690932f87c905c52ff0fbd90101fb35d17031cb.tar.lz
dotfiles-f690932f87c905c52ff0fbd90101fb35d17031cb.tar.zst
dotfiles-f690932f87c905c52ff0fbd90101fb35d17031cb.zip
Emacs: add emmet-mode to web-mode-hook
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el
index c179c27..6695f86 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -1175,7 +1175,10 @@ Works with: arglist-cont-nonempty, arglist-close."
   :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