emmet might be absent when we activate it in web-mode-hook.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 14 Jul 2021 12:24:40 +0300
changeset 1739 0274fa6f1aca
parent 1738 1f9eaaf10690
child 1740 2335b10cbc88
emmet might be absent when we activate it in web-mode-hook.
.emacs-my
--- a/.emacs-my	Wed Jul 07 18:01:09 2021 +0300
+++ b/.emacs-my	Wed Jul 14 12:24:40 2021 +0300
@@ -3722,10 +3722,9 @@
 (cl-eval-when (compile) (require 'emmet-mode nil t))
 
 (when (featurep 'emmet-mode)
-  (add-hook 'sgml-mode-hook 'emmet-mode))
-
-(when (featurep 'web-mode)
-  (add-hook 'web-mode-hook 'emmet-mode))
+  (add-hook 'sgml-mode-hook 'emmet-mode)
+  (when (featurep 'web-mode)
+    (add-hook 'web-mode-hook 'emmet-mode)))
 
 (setq emmet-move-cursor-between-quotes t)
 (setq emmet-move-cursor-after-expanding t)