all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@spamto.devnul.com>
Subject: Re: diabling colors on tty
Date: 19 Feb 2003 19:17:23 +1100	[thread overview]
Message-ID: <87n0ksofak.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: b2tjao$17rn$1@ns.felk.cvut.cz

>>>>> "Pavel" == Pavel Hlavnicka <pavel@gingerall.cz> 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!

      parent reply	other threads:[~2003-02-19  8:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-18 15:26 diabling colors on tty Pavel Hlavnicka
2003-02-18 15:38 ` Brendan Halpin
2003-02-19  8:17 ` Tim X [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87n0ksofak.fsf@tiger.rapttech.com.au \
    --to=timx@spamto.devnul.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.