summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-06-08 14:04:41 +0100
committerAlan Pearce2013-06-08 14:04:41 +0100
commit1684ef963ebee889ed76dede11807882b588bba6 (patch)
tree497543b25f90b71caf5fe3f328fd9e89fbb2c49e /emacs
parent67c1c83f61eaf206ccbb0bd939a81dfa54ac109e (diff)
downloaddotfiles-1684ef963ebee889ed76dede11807882b588bba6.tar.lz
dotfiles-1684ef963ebee889ed76dede11807882b588bba6.tar.zst
dotfiles-1684ef963ebee889ed76dede11807882b588bba6.zip
Emacs: delay loading skewer until needed
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/emacs/init.el b/emacs/init.el
index c3a7743..141ad58 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -1041,7 +1041,12 @@ Works with: arglist-cont-nonempty, arglist-close."
               (comint-send-string (inferior-moz-process) "BrowserReload();"))))
 
 (use-package skewer-mode
-  :ensure t)
+  :ensure t
+  :defer t
+  :init (progn
+          (add-hook 'js2-mode-hook #'skewer-mode)
+          (add-hook 'html-mode-hook #'skewer-html-mode)
+          (add-hook 'css-mode-hook #'skewer-css-mode)))
 
 (use-package js2-mode
   :ensure t
@@ -1050,8 +1055,6 @@ Works with: arglist-cont-nonempty, arglist-close."
             (defun ap/javascript-setup ()
 			  (if (featurep 'moz)
 				  (moz-minor-mode))
-			  (if (featurep 'skewer-mode)
-                  (skewer-mode +1))
               (autopair-mode -1)
               (auto-indent-mode -1))
             (add-hook 'js2-mode-hook #'ap/javascript-setup)