summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-01-17 21:50:14 -0700
committerTom Tromey <tom@tromey.com>2017-02-04 13:00:59 -0700
commit394fc3fd030b8fa2f9b97c2ef3fa3b16e6f29474 (patch)
treecdf13a4354bfe73828dfacbd5828d8f5cc411674 /lisp
parentcaf31fb5f53aef47bea1cd2e741f5d9c254c1a81 (diff)
downloademacs-394fc3fd030b8fa2f9b97c2ef3fa3b16e6f29474.tar.gz
emacs-394fc3fd030b8fa2f9b97c2ef3fa3b16e6f29474.tar.bz2
emacs-394fc3fd030b8fa2f9b97c2ef3fa3b16e6f29474.zip
Set comment-multi-line in js-mode
Bug#6806: * lisp/progmodes/js.el (js-mode): Set comment-multi-line to t. * test/lisp/progmodes/js-tests.el (js-mode-auto-fill): New test.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/js.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 74dd4add9e2..e42e01481b6 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -3849,6 +3849,7 @@ If one hasn't been set, or if it's stale, prompt for a new one."
comment-start-skip "\\(//+\\|/\\*+\\)\\s *")
(setq-local comment-line-break-function #'c-indent-new-comment-line)
(setq-local c-block-comment-start-regexp "/\\*")
+ (setq-local comment-multi-line t)
(setq-local electric-indent-chars
(append "{}():;," electric-indent-chars)) ;FIXME: js2-mode adds "[]*".