Browse Source

Merge pull request #1 from syohex/support-js2-js3

enable js2-mode and js3-mode
pull/5/head v0.1.0
Brett Langdon 12 years ago
parent
commit
699507a228
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      jsfmt.el

+ 1
- 1
jsfmt.el View File

@ -129,6 +129,6 @@ Note that this will cause js-mode to get loaded the first time
you save any file, kind of defeating the point of autoloading." you save any file, kind of defeating the point of autoloading."
(interactive) (interactive)
(when (eq major-mode 'js-mode) (jsfmt)))
(when (memq major-mode '(js-mode js2-mode js3-mode)) (jsfmt)))
(provide 'jsfmt) (provide 'jsfmt)

Loading…
Cancel
Save