Gnus development mailing list
 help / color / mirror / Atom feed
From: Christopher K Davis <ckd@ckdhr.com>
Cc: ding@gnus.org
Subject: Re: colors
Date: 23 Feb 1999 09:15:16 -0500	[thread overview]
Message-ID: <w4u2wd5hqj.fsf@kline-station.ckdhr.com> (raw)
In-Reply-To: dp@kemtipp.ru's message of "20 Feb 1999 20:58:43 +0700"

dp  <dp@kemtipp.ru> writes:

> Is there any way to force Gnus to show colors in console? XEmacs 20.4
> and Gnus 5.6.43 use my face- settings only in X.

Here's what I use.  The trick is to put tty-compatible color names in
the color lists.  I also manually force TTYs to be color since not all
of my termcap entries claim color support.

;; try to be a colorized TTY
(if (eq (device-type (selected-device)) 'tty)
    (set-device-class (selected-device) 'color))

(require 'font-lock)

;; font-lock face setup based on sample.emacs
(set-face-foreground 'font-lock-string-face (list "darkgreen" "green"))
(copy-face 'font-lock-string-face 'font-lock-doc-string-face)
;; Underline comments looks terrible on tty's
(set-face-underline-p 'font-lock-comment-face nil 'global 'tty)
(set-face-highlight-p 'font-lock-comment-face nil 'global 'tty)
(set-face-foreground 'font-lock-comment-face (list "gray50" "blue"))

(copy-face 'bold 'font-lock-function-name-face)
(set-face-foreground 'font-lock-function-name-face "red")

;; misc. faces
(and (find-face 'font-lock-preprocessor-face) ; 19.13 and above
     (copy-face 'bold 'font-lock-preprocessor-face))

(copy-face 'italic 'font-lock-type-face)
(set-face-foreground 'font-lock-type-face (list "blue3" "blue"))

(copy-face 'default 'font-lock-other-type-face)
(set-face-foreground 'font-lock-other-type-face (list "blue3" "blue"))

(copy-face 'bold 'font-lock-keyword-face)
(set-face-foreground 'font-lock-keyword-face (list "blue3" "blue"))

(copy-face 'default 'cperl-invalid-face)
(set-face-background 'cperl-invalid-face (list "pink" "red"))

-- 
Christopher Davis * <ckd-sig@ckdhr.com> * <URL:http://www.ckdhr.com/ckd/>
Put location information in your DNS! <URL:http://www.ckdhr.com/dns-loc/>


  parent reply	other threads:[~1999-02-23 14:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-20 13:58 colors dp
1999-02-20 22:24 ` colors Lars Magne Ingebrigtsen
1999-02-23 14:15 ` Christopher K Davis [this message]
1999-02-23 16:13   ` user- Jeff Murphy
1999-02-23 18:47     ` user- Justin Sheehy
  -- strict thread matches above, loose matches on Subject: below --
1996-10-08 15:39 Colors Edvard Majakari
1996-06-05 17:35 Colors Lars Magne Ingebrigtsen

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=w4u2wd5hqj.fsf@kline-station.ckdhr.com \
    --to=ckd@ckdhr.com \
    --cc=ding@gnus.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).