Skip to content

Instantly share code, notes, and snippets.

@jerith
Created August 4, 2011 08:27
Show Gist options
  • Save jerith/1124721 to your computer and use it in GitHub Desktop.
Save jerith/1124721 to your computer and use it in GitHub Desktop.
;; 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