Permalink
Browse files

More packages

  • Loading branch information...
1 parent d474938 commit 2bf26e6b7ec75ee7b0de24b566c2d8134b8d8233 @diasjorge committed May 14, 2013
Showing with 18 additions and 3 deletions.
  1. +18 −3 init_packages.el
View
@@ -166,9 +166,14 @@
"Major mode for editing comma-separated value files." t))
(defun jshint-mode-after-load ()
- (require 'flymake-jshint)
(add-hook 'js2-mode-hook
- (lambda () (flymake-mode t))))
+ (lambda ()
+ (add-hook 'after-save-hook
+ (lambda ()
+ (require 'flymake-jshint)
+ (flymake-start-syntax-check)
+ nil 'make-it-local))))
+ )
(defun expand-region-after-load ()
(autoload 'expand-region "expand-region")
@@ -199,6 +204,12 @@
(local-set-key (kbd "M-n") 'rebase-mode-move-line-down)))
)
+(defun js2-refactor-after-load ()
+ (add-hook 'js2-mode-hook
+ (lambda ()
+ (require 'js2-refactor)))
+)
+
;; local sources
(setq el-get-sources
'((:name ergoemacs-keybindings
@@ -271,7 +282,11 @@
(:name css-mode)
(:name js2-mode
:after (progn (js2-mode-after-load)))
- (:name js2-refactor)
+ (:name js2-refactor
+ :type github
+ :pkgname "magnars/js2-refactor.el"
+ :depends (js2-mode dash multiple-cursors s)
+ :after (progn (js2-refactor-after-load)))
(:name slim-mode
:type elpa)
(:name textile-mode

0 comments on commit 2bf26e6

Please sign in to comment.