all repos — nixfiles @ 70a0e3c9784071b8f0470b868d3595584da235da

System and user configuration, managed by nix and home-manager

Emacs: Fix chained method call indentation in Javascript
Alan Pearce alan@alanpearce.eu
Wed, 21 Feb 2018 11:23:47 +0100
commit

70a0e3c9784071b8f0470b868d3595584da235da

parent

3003eede7cd7f0fab0374dfe9bbd650095e560b6

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -2117,6 +2117,7 @@ (interactive)               (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