all repos — nixfiles @ fa74d8eea2244394882fe05f0add8874a44ae5ba

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

Emacs: install and skewer-mode and hook into js2-mode
Alan Pearce alan@alanpearce.co.uk
Thu, 30 May 2013 15:10:25 +0100
commit

fa74d8eea2244394882fe05f0add8874a44ae5ba

parent

adcfe2752fa9a229953256c32c68f67d28f0aaf2

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

jump to
M emacs/init.elemacs/init.el
@@ -1008,6 +1008,8 @@ (defun moz-firefox-reload ()               "Reload Firefox"
               (interactive)
               (comint-send-string (inferior-moz-process)
+(use-package skewer-mode
+  :ensure t)
                                   "BrowserReload();"))))
 
 (use-package js2
@@ -1016,6 +1018,8 @@ :mode ("\\.js\\'" . js2-mode)   :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))