help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diabling colors on tty


From: Tim X
Subject: Re: diabling colors on tty
Date: 19 Feb 2003 19:17:23 +1100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

>>>>> "Pavel" == Pavel Hlavnicka <address@hidden> writes:

 Pavel> Hi all,

 Pavel> simple question: Is there some trick, how to disable ALL
 Pavel> colors (except black and white) on text terminal, but keep all
 Pavel> lovely colors if running X-windowed emacs?

 Pavel> (Be hard, I can use lisp quite fine :)

Put a section in your .emacs which turns off global-font-lock-mode if
you are running on a tty or turns it on if your runing under X. I use

(if (and (eq window-system 'x) (not noninteractive))
...

To set font colours to one colour under X and another when running
under a term. You could possibly use the same test to turn on font
lock mode under X and turn it off under a tty. 

Tim


-- 
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]