Created
August 4, 2011 08:27
-
-
Save jerith/1124721 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Should this be more general? | |
(defun highlight-tabs () | |
"Make tabs show up in the same color as trailing whitespace." | |
(font-lock-add-keywords nil '(("\t" 0 'trailing-whitespace prepend)))) | |
(require 'python) ; Because Aquamacs likes python-mode.el and I don't. | |
;; (require 'ipython) ; Uses python-mode.el :-( | |
(add-hook 'python-mode-hook 'highlight-tabs) | |
(add-hook 'python-mode-hook (lambda () | |
(local-set-key "\C-m" 'newline-and-indent))) | |
(require 'twisted-dev) | |
(global-set-key [f5] 'twisted-dev-runtests) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment