summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-12-02 22:01:04 (GMT)
committerBarry Warsaw <barry@python.org>1997-12-02 22:01:04 (GMT)
commit5c38bf6c62eb9590fb0616120e51aeac220bfc0a (patch)
treedaf5b0247d447d17840052f18956faa7685e99e0
parent673d05f0ee0afd043e27e2694eb0e14352ce9772 (diff)
downloadcpython-5c38bf6c62eb9590fb0616120e51aeac220bfc0a.zip
cpython-5c38bf6c62eb9590fb0616120e51aeac220bfc0a.tar.gz
cpython-5c38bf6c62eb9590fb0616120e51aeac220bfc0a.tar.bz2
(python-mode): Patch to make font-lock work automatically for Emacs.
Unnecessary for XEmacs, but oh well...
-rw-r--r--Misc/python-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 140d3c0..9adc9cf 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -851,6 +851,7 @@ py-beep-if-tab-change\t\tring the bell if tab-width is changed"
(setq major-mode 'python-mode
mode-name "Python"
local-abbrev-table python-mode-abbrev-table
+ font-lock-defaults '(python-font-lock-keywords)
paragraph-separate "^[ \t]*$"
paragraph-start "^[ \t]*$"
require-final-newline t