summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2018-02-21 11:23:47 +0100
committerAlan Pearce2018-02-21 11:23:47 +0100
commit70a0e3c9784071b8f0470b868d3595584da235da (patch)
tree4246991615602ca996443d227752705c7376114b
parent3003eede7cd7f0fab0374dfe9bbd650095e560b6 (diff)
downloadnixfiles-70a0e3c9784071b8f0470b868d3595584da235da.tar.lz
nixfiles-70a0e3c9784071b8f0470b868d3595584da235da.tar.zst
nixfiles-70a0e3c9784071b8f0470b868d3595584da235da.zip
Emacs: Fix chained method call indentation in Javascript
-rw-r--r--emacs/.emacs.d/main.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 09e43d14..d75ce9a0 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -2117,6 +2117,7 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer."
               (js2-next-error -1))
             (bind-key "M-g M-n" #'js2-next-error js2-mode-map)
             (bind-key "M-g M-p" #'ap/js2-prev-error js2-mode-map)
+            (advice-add #'js--multi-line-declaration-indentation :around (lambda (orig-fun &rest args) nil))
             (setq js2-basic-offset 2
                   js-switch-indent-offset 2
                   js2-include-node-externs t