| @@ -1108,6 +1108,7 @@ found, otherwise returns nil." | |||||
| "https://raw.github.com/mooz/js2-mode/master/js2-mode.el" | "https://raw.github.com/mooz/js2-mode/master/js2-mode.el" | ||||
| t) | t) | ||||
| (lazy-load-eval 'js2-mode) | (lazy-load-eval 'js2-mode) | ||||
| ;; currently do not use js2-mode | |||||
| ;; (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)) | ;; (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)) | ||||
| ;; (add-to-list 'auto-mode-alist '("\\.jsm\\'" . js2-mode)) | ;; (add-to-list 'auto-mode-alist '("\\.jsm\\'" . js2-mode)) | ||||
| (add-hook 'js2-mode-hook | (add-hook 'js2-mode-hook | ||||
| @@ -1124,11 +1125,12 @@ found, otherwise returns nil." | |||||
| ;; t) | ;; t) | ||||
| ))) | ))) | ||||
| (eval-after-load "js" | |||||
| (setq js-indent-level 2)) | |||||
| (add-to-list 'interpreter-mode-alist | (add-to-list 'interpreter-mode-alist | ||||
| '("node" . js-mode)) | '("node" . js-mode)) | ||||
| (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation) | |||||
| (when (lazy-load-eval 'flymake-jslint | (when (lazy-load-eval 'flymake-jslint | ||||
| '(flymake-jslint-load)) | '(flymake-jslint-load)) | ||||
| (lazy-load-eval 'js nil | (lazy-load-eval 'js nil | ||||
| @@ -1137,6 +1139,8 @@ found, otherwise returns nil." | |||||
| (require 'js-doc nil t) | (require 'js-doc nil t) | ||||
| (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation) | |||||
| (when (require 'uniquify nil t) | (when (require 'uniquify nil t) | ||||
| (setq uniquify-buffer-name-style 'post-forward-angle-brackets) | (setq uniquify-buffer-name-style 'post-forward-angle-brackets) | ||||
| (setq uniquify-ignore-buffers-re "*[^*]+*") | (setq uniquify-ignore-buffers-re "*[^*]+*") | ||||