Kaydet (Commit) 3c294caa authored tarafından Guido van Rossum's avatar Guido van Rossum

add note about font-lock and fix doc URL

üst 5d9acb6b
...@@ -380,6 +380,15 @@ Misc/python-mode.el. Originally written by Tim Peters, who's no ...@@ -380,6 +380,15 @@ Misc/python-mode.el. Originally written by Tim Peters, who's no
longer on the net, it is now maintained by Barry Warsaw longer on the net, it is now maintained by Barry Warsaw
<bwarsaw@cnri.reston.va.com>. <bwarsaw@cnri.reston.va.com>.
BTW, if you want to use font-lock for Python sources, here's something
to put in your .emacs file:
(defun my-python-mode-hook ()
(setq font-lock-keywords python-font-lock-keywords)
(font-lock-mode 1))
(add-hook 'python-mode-hook 'my-python-mode-hook)
Bug reports Bug reports
----------- -----------
...@@ -430,8 +439,8 @@ have to edit the first line as well to fix the -I and -L options.) ...@@ -430,8 +439,8 @@ have to edit the first line as well to fix the -I and -L options.)
See the Build Instructions above for more details. See the Build Instructions above for more details.
There is little documentation. Begin with fetching the "Tk Lifesaver" There is little documentation. Begin with fetching the "Tk Lifesaver"
document, e.g. <URL:ftp://ftp.cwi.nl/pub/python/tkinter-doc.tar.gz> (a document, e.g. <URL:ftp://ftp.cwi.nl/pub/python/doc/tkinter-doc.tar.gz>
gzipped tar file containing a PostScript file). There are demos in (a gzipped tar file containing a PostScript file). There are demos in
the Demo/tkinter directory, in the subdirectories guido, matt and www. the Demo/tkinter directory, in the subdirectories guido, matt and www.
Note that there's a Python module called "Tkinter" (capital T) which Note that there's a Python module called "Tkinter" (capital T) which
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment