]> git.eshelyaron.com Git - emacs.git/commitdiff
make js.el respect prog-first-column
authorTom Tromey <tom@tromey.com>
Thu, 23 Mar 2017 17:33:22 +0000 (11:33 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 5 Apr 2017 21:53:39 +0000 (15:53 -0600)
* lisp/progmodes/js.el (js--proper-indentation): Call prog-first-column.

lisp/progmodes/js.el

index 3c720c05610dac810aaeb9b62c2fb5e6416b9c43..c220353e9b702c9d5944926092f2faf17febafbe 100644 (file)
@@ -53,6 +53,7 @@
 (require 'moz nil t)
 (require 'json nil t)
 (require 'sgml-mode)
+(require 'prog-mode)
 
 (eval-when-compile
   (require 'cl-lib)
@@ -2125,7 +2126,7 @@ indentation is aligned to that column."
 
           ((js--continued-expression-p)
            (+ js-indent-level js-expr-indent-offset))
-          (t 0))))
+          (t (prog-first-column)))))
 
 ;;; JSX Indentation