Mercurial > dotfiles
diff .emacs @ 27:614a83a1c5dd
Add js2-mode.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Tue, 30 Dec 2008 13:25:23 -0600 |
parents | 8715ccb6f61b |
children | 260deb14fbc8 |
line wrap: on
line diff
--- a/.emacs +++ b/.emacs @@ -56,6 +56,9 @@ point." (add-hook 'emacs-lisp-mode-hook 'af-tab-fix) (add-hook 'clojure-mode-hook 'af-tab-fix) +(autoload 'js2-mode "js2" nil t) +(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) + (defun af-python-mode-hook () ; highlight tabs in Python (make-variable-buffer-local 'font-lock-mode-hook)