Skip to content

Commit

Permalink
More packages
Browse files Browse the repository at this point in the history
  • Loading branch information
diasjorge committed May 14, 2013
1 parent d474938 commit 2bf26e6
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions init_packages.el
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2bf26e6

Please sign in to comment.