comparison .emacs @ 37:6e65d45edbbe

Tab fix for js2-mode
author Augie Fackler <durin42@gmail.com>
date Wed, 21 Jan 2009 11:10:07 -0600
parents 1c70c9393f45
children f34194cad324
comparison
equal deleted inserted replaced
36:74e6d193f4a8 37:6e65d45edbbe
61 (add-hook 'emacs-lisp-mode-hook 'af-tab-fix) 61 (add-hook 'emacs-lisp-mode-hook 'af-tab-fix)
62 (add-hook 'clojure-mode-hook 'af-tab-fix) 62 (add-hook 'clojure-mode-hook 'af-tab-fix)
63 63
64 (autoload 'js2-mode "js2" nil t) 64 (autoload 'js2-mode "js2" nil t)
65 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) 65 (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
66 (add-hook 'js2-mode-hook 'af-tab-fix)
66 67
67 (defun af-python-mode-hook () 68 (defun af-python-mode-hook ()
68 ; highlight tabs in Python 69 ; highlight tabs in Python
69 (make-variable-buffer-local 'font-lock-mode-hook) 70 (make-variable-buffer-local 'font-lock-mode-hook)
70 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs) 71 (add-hook 'font-lock-mode-hook 'show-ws-highlight-tabs)