Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; Nicer js mode, thanks Whit
- (autoload 'js2-mode "js2" nil t)
- (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
- (add-to-list 'auto-mode-alist '("\\.json$" . js2-mode))
- ;; However, its indentation is really obnoxious when working with existing code.
- ;; This helps... some.
- (setq js2-auto-indent-flag nil)
- (setq js2-enter-indents-newline nil)
- (setq js2-mode-indent-ignore-first-tab t)
- (setq js2-mode-indent-inhibit-undo t)
Add Comment
Please, Sign In to add comment