:type 'function
:group 'python)
+(defface py-tab-face nil
+ "Face that tabs are displayed in.
+To quickly see mixed tabs/spaces, use \\[customize-face] and set the
+background of `py-tab-face' to something obnoxious (like \"Yellow\")."
+ :group 'python)
+
;; Not customizable
(defvar py-master-file nil
"If non-nil, execute the named file instead of the buffer's file.
;; functions
'("\\bdef[ \t]+\\([a-zA-Z_]+[a-zA-Z0-9_]*\\)"
1 font-lock-function-name-face)
+ ;; tabs
+ '("^[\t]+" 0 py-tab-face)
))
"Additional expressions to highlight in Python mode.")
(put 'python-mode 'font-lock-defaults '(python-font-lock-keywords))