Emacs: install and skewer-mode and hook into js2-mode
Alan Pearce alan@alanpearce.co.uk
Thu, 30 May 2013 15:10:25 +0100
1 files changed, 4 insertions(+), 0 deletions(-)
jump to
M emacs/init.el → emacs/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))