Problem with Emacs mode, at start only

Randall Hopper aa8vb at yahoo.com
Fri Feb 25 08:26:11 EST 2000


François Pinard:
 |> (add-hook 'python-mode-hook '(lambda ()
 |> 			       (save-window-excursion
 |> 				 (py-shell)
 |> 				 (local-unset-key "\C-c\C-c")
 |> 				 (local-set-key "\C-c\C-s"
 |> 						'comint-interrupt-subjob))))

This thread has been very useful.  While we're on the subject, is there
a way to have Emacs fontify the >>> Python prompt in a py-shell?

For shell-mode, I have:

    (setq shell-font-lock-keywords ... 
                  '("^.+ : .+ >" . font-lock-function-name-face)
                  ... )

which colorizes my prompt.  

There is no "py-shell-font-lock-keywords" that I noticed.

Thanks,

Randall


-- 
Randall Hopper
aa8vb at yahoo.com




More information about the Python-list mailing list