From 70a0e3c9784071b8f0470b868d3595584da235da Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 21 Feb 2018 11:23:47 +0100 Subject: Emacs: Fix chained method call indentation in Javascript --- emacs/.emacs.d/main.el | 1 + 1 file changed, 1 insertion(+) (limited to 'emacs/.emacs.d') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 09e43d1..d75ce9a 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 -- cgit 1.4.1