comparison .elisp/settings/40.modes.el @ 302:a9e3c2ca6fa5

python-mode-hook: give up on flyspell-prog-mode, as it can be very very slow
author Augie Fackler <raf@durin42.com>
date Tue, 04 Dec 2012 11:02:06 -0600
parents 7a99481ab888
children 6a773ec78813
comparison
equal deleted inserted replaced
301:228f11416f28 302:a9e3c2ca6fa5
46 (add-to-list 'auto-mode-alist '("\\.rhtml$'" . django-html-mode)) 46 (add-to-list 'auto-mode-alist '("\\.rhtml$'" . django-html-mode))
47 (add-hook 'django-html-mode-hook '(lambda () 47 (add-hook 'django-html-mode-hook '(lambda ()
48 (local-set-key (kbd "RET") 48 (local-set-key (kbd "RET")
49 'reindent-then-newline-and-indent))) 49 'reindent-then-newline-and-indent)))
50 (defun af-python-mode-hook () 50 (defun af-python-mode-hook ()
51 (flyspell-prog-mode)
52 ; highlight tabs in Python 51 ; highlight tabs in Python
53 (make-variable-buffer-local 'font-lock-mode-hook) 52 (make-variable-buffer-local 'font-lock-mode-hook)
54 (make-variable-buffer-local 'python-indent) 53 (make-variable-buffer-local 'python-indent)
55 (if (and buffer-file-name (string-match "melange" buffer-file-name)) 54 (if (and buffer-file-name (string-match "melange" buffer-file-name))
56 (set-variable 'python-indent 2)) 55 (set-variable 'python-indent 2))