From f4317cee59b69a1a7ff7f8f5ee55b1b019220fc8 Mon Sep 17 00:00:00 2001 From: Syohei YOSHIDA Date: Thu, 22 May 2014 15:55:16 +0900 Subject: [PATCH] enable js2-mode and js3-mode --- jsfmt.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsfmt.el b/jsfmt.el index 57af4ab..104a361 100644 --- a/jsfmt.el +++ b/jsfmt.el @@ -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." (interactive) - (when (eq major-mode 'js-mode) (jsfmt))) + (when (memq major-mode '(js-mode js2-mode js3-mode)) (jsfmt))) (provide 'jsfmt)