daleharvey / jshint-mode

JSHint integrated into emacs
Other
93 stars 26 forks source link

Any way to get this working with .jsm files #31

Open MikeRatcliffe opened 9 years ago

MikeRatcliffe commented 9 years ago

This is the relevant stuff from my .emacs:

;; jshint
(add-to-list 'load-path "~/.emacs.d/jshint-mode")
(require 'flymake-jshint)
(setq jshint-mode-jshintrc "~/.jshintrc")
 (add-hook 'js3-mode-hook
     (lambda () (flymake-mode t)))

;; Turns on flymake for all files which have a flymake mode
(add-hook 'find-file-hook 'flymake-find-file-hook)

;; Set up JS3 mode
(add-to-list 'auto-mode-alist '("\\.js$" . js3-mode));
(add-to-list 'auto-mode-alist '("\\.jsm$" . js3-mode));