comparison .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
comparison
equal deleted inserted replaced
26:895bcf0db86a 27:614a83a1c5dd
54 (add-hook 'c-mode-hook 'af-tab-fix) 54 (add-hook 'c-mode-hook 'af-tab-fix)
55 (add-hook 'sh-mode-hook 'af-tab-fix) 55 (add-hook 'sh-mode-hook 'af-tab-fix)
56 (add-hook 'emacs-lisp-mode-hook 'af-tab-fix) 56 (add-hook 'emacs-lisp-mode-hook 'af-tab-fix)
57 (add-hook 'clojure-mode-hook 'af-tab-fix) 57 (add-hook 'clojure-mode-hook 'af-tab-fix)
58 58
59 (autoload 'js2-mode "js2" nil t)
60 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
61
59 (defun af-python-mode-hook () 62 (defun af-python-mode-hook ()
60 ; highlight tabs in Python 63 ; highlight tabs in Python
61 (make-variable-buffer-local 'font-lock-mode-hook) 64 (make-variable-buffer-local 'font-lock-mode-hook)
62 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs) 65 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs)
63 (make-variable-buffer-local 'python-indent) 66 (make-variable-buffer-local 'python-indent)