summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-05-30 15:10:25 +0100
committerAlan Pearce2013-05-30 15:10:25 +0100
commitfa74d8eea2244394882fe05f0add8874a44ae5ba (patch)
tree448ff01465e51f0eb4c1076c1f52a751f19c39cb /emacs
parentadcfe2752fa9a229953256c32c68f67d28f0aaf2 (diff)
downloadnixfiles-fa74d8eea2244394882fe05f0add8874a44ae5ba.tar.lz
nixfiles-fa74d8eea2244394882fe05f0add8874a44ae5ba.tar.zst
nixfiles-fa74d8eea2244394882fe05f0add8874a44ae5ba.zip
Emacs: install and skewer-mode and hook into js2-mode
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 0fafe5fb..1b43f143 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -1008,6 +1008,8 @@ Works with: arglist-cont-nonempty, arglist-close."
               "Reload Firefox"
               (interactive)
               (comint-send-string (inferior-moz-process)
+(use-package skewer-mode
+  :ensure t)
                                   "BrowserReload();"))))
 
 (use-package js2
@@ -1016,6 +1018,8 @@ Works with: arglist-cont-nonempty, arglist-close."
   :config (progn
             (defun ap/javascript-setup ()
               (if (featurep 'moz)
+              (if (featurep 'skewer-mode)
+                  (skewer-mode +1))
                   (moz-minor-mode t))
               (autopair-mode -1)
               (auto-indent-mode -1))