Browse files

Some js2-mode tweaks

  • Loading branch information...
1 parent 7c380ae commit a4290f61cfc19dc1eaf5db44cde6971237613d4b @nelhage committed Jun 12, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 dot-emacs
@@ -666,18 +666,20 @@ unable to perform symbol completion.")
(autoload 'moz-minor-mode "moz" "Mozilla Minor and Inferior Mozilla Modes" t)
(autoload 'js2-mode "js2" nil t)
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
+(add-to-list 'interpreter-mode-alist '("node" . js2-mode))
; (add-hook 'js2-mode-hook 'moz-minor-mode)
(add-hook 'js2-mode-hook 'js2-enter-mirror-mode)
(add-hook 'js2-mode-hook 'my-js2-mode-hook)
-(add-hook 'js2-mode-hook 'define-bracket-keys)
+; (add-hook 'js2-mode-hook 'define-bracket-keys)
(setq js2-use-font-lock-faces t
js2-allow-keywords-as-property-names t
- js2-mode-show-strict-warnings nil)
+ js2-mode-show-strict-warnings nil
+ js2-bounce-indent-p t)
(defadvice js2-enter-key (after js2-enter-key-indent)
(let ((js2-bounce-indent-flag nil))
-(ad-activate 'js2-enter-key)
+; (ad-activate 'js2-enter-key)
(eval-after-load 'js2-mode

0 comments on commit a4290f6

Please sign in to comment.