all repos — nixfiles @ 4ad23a478f7de66c7e322a9e5551f6f7da10993f

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

Emacs: Update js2-mode configuration

Alan Pearce
commit

4ad23a478f7de66c7e322a9e5551f6f7da10993f

parent

ecad7cfbba68231a54afdee78e2f256c78519db4

1 file changed, 1 insertion(+), 2 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -1843,7 +1843,6 @@ (if (and (not (string-equal name "IM-Javascript-IDE"))
(fboundp #'do-it)) (do-it name))) (advice-add 'imenu-add-to-menubar :around #'js2--imenu-around) - (setq js2-skip-preprocessor-directives t) (defun ap/javascript-setup () (auto-indent-mode -1)) (defun ap/js2-prev-error ()
@@ -1852,7 +1851,7 @@ (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) (add-hook 'js2-mode-hook #'ap/javascript-setup) - (setq js2-basic-offset 4 + (setq js2-basic-offset 2 js2-include-node-externs t))) #+END_SRC