Skip to content

Commit 5331ef8

Browse files
committed
make js.el respect prog-first-column
* lisp/progmodes/js.el (js--proper-indentation): Call prog-first-column.
1 parent 473a420 commit 5331ef8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lisp/progmodes/js.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
(require 'moz nil t)
5454
(require 'json nil t)
5555
(require 'sgml-mode)
56+
(require 'prog-mode)
5657

5758
(eval-when-compile
5859
(require 'cl-lib)
@@ -2125,7 +2126,7 @@ indentation is aligned to that column."
21252126

21262127
((js--continued-expression-p)
21272128
(+ js-indent-level js-expr-indent-offset))
2128-
(t 0))))
2129+
(t (prog-first-column)))))
21292130

21302131
;;; JSX Indentation
21312132

0 commit comments

Comments
 (0)