Emacs: Fix chained method call indentation in Javascript
Alan Pearce alan@alanpearce.eu
Wed, 21 Feb 2018 11:23:47 +0100
1 files changed, 1 insertions(+), 0 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.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