Browse Source

enable js2-mode and js3-mode

pull/1/head
Syohei YOSHIDA 12 years ago
parent
commit
f4317cee59
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