Guest User

Untitled

a guest
Feb 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1.  
  2. ;; Nicer js mode, thanks Whit
  3. (autoload 'js2-mode "js2" nil t)
  4. (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
  5. (add-to-list 'auto-mode-alist '("\\.json$" . js2-mode))
  6. ;; However, its indentation is really obnoxious when working with existing code.
  7. ;; This helps... some.
  8. (setq js2-auto-indent-flag nil)
  9. (setq js2-enter-indents-newline nil)
  10. (setq js2-mode-indent-ignore-first-tab t)
  11. (setq js2-mode-indent-inhibit-undo t)
Add Comment
Please, Sign In to add comment