Function: python-shell-font-lock-toggle
python-shell-font-lock-toggle is an interactive and byte-compiled
function defined in python.el.gz.
Signature
(python-shell-font-lock-toggle &optional MSG)
Documentation
Toggle font-lock for shell.
With argument MSG show activation/deactivation message.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-shell-font-lock-toggle (&optional msg)
"Toggle font-lock for shell.
With argument MSG show activation/deactivation message."
(interactive "p")
(python-shell-with-shell-buffer
(setq-local python-shell-font-lock-enable
(not python-shell-font-lock-enable))
(if python-shell-font-lock-enable
(python-shell-font-lock-turn-on msg)
(python-shell-font-lock-turn-off msg))
python-shell-font-lock-enable))