From jjhartley at gmail.com Fri Jun 8 17:30:21 2007 From: jjhartley at gmail.com (James Hartley) Date: Fri, 8 Jun 2007 08:30:21 -0700 Subject: [Python-mode] color syntax highlighting? Message-ID: I've recently switched to Emacs & have been impressed with python-mode.elfound at SourceForge. Thanks to everyone involved with its development. However as a newbie, how is color syntax highlighting enabled? Searching through Google shows that coloring is already done within python-mode.el, but I'm not seeing it when running emacs -nw within aterm on X. Any insight which can be passed on would be appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-mode/attachments/20070608/a45a48a6/attachment.html From skip at pobox.com Fri Jun 8 18:06:28 2007 From: skip at pobox.com (skip at pobox.com) Date: Fri, 8 Jun 2007 11:06:28 -0500 Subject: [Python-mode] color syntax highlighting? In-Reply-To: References: Message-ID: <18025.32388.23117.637987@montanaro.dyndns.org> 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/ From jjhartley at gmail.com Fri Jun 8 18:45:56 2007 From: jjhartley at gmail.com (James Hartley) Date: Fri, 8 Jun 2007 09:45:56 -0700 Subject: [Python-mode] color syntax highlighting? In-Reply-To: <18025.32388.23117.637987@montanaro.dyndns.org> References: <18025.32388.23117.637987@montanaro.dyndns.org> Message-ID: On 6/8/07, skip at pobox.com wrote: > > 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. Thanks for your response. I'll play with $TERM settings. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-mode/attachments/20070608/38905f4e/attachment.html