[Python-mode] color syntax highlighting?

skip at pobox.com skip at pobox.com
Fri Jun 8 18:06:28 CEST 2007

    James> However as a newbie, how is color syntax highlighting enabled?
    James> Searching through Google shows that coloring is already done
    James> within python-mode.el, but I'm not seeing it when running emacs
    James> -nw within aterm on X.

I suspect that the ability to highlight syntax when using -nw (that is, not
starting an X-aware instance of Emacs) depends on the terminfo/termcap
description of available for your current $TERM setting.  For example, when
I start it with -nw and have TERM set to "xterm" on my Mac the only
highlighting I get is bold font for various things.  If I set TERM to
"color_xterm" or "xterm-256color" I get two colors, black and medium blue
(but lose the bold font).  That's nowhere near as much as I get when I run
an X-aware XEmacs.

Skip Montanaro - skip at pobox.com - http://www.webfast.com/~skip/

More information about the Python-mode mailing list