]> granicus.if.org Git - python/commitdiff
(python-mode): Patch to make font-lock work automatically for Emacs.
authorBarry Warsaw <barry@python.org>
Tue, 2 Dec 1997 22:01:04 +0000 (22:01 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 2 Dec 1997 22:01:04 +0000 (22:01 +0000)
Unnecessary for XEmacs, but oh well...

Misc/python-mode.el

index 140d3c0a710c2be5b9f78dbe0f2e03b20ef1df78..9adc9cfab90512ea60aa2181172da5f376a0ed6f 100644 (file)
@@ -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