From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/21458 Path: main.gmane.org!not-for-mail From: Christopher K Davis Newsgroups: gmane.emacs.gnus.general Subject: Re: colors Date: 23 Feb 1999 09:15:16 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87r9rl9nxo.fsf@postmortem.kemtipp.ru> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035159557 23054 80.91.224.250 (21 Oct 2002 00:19:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:19:17 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA09626 for ; Tue, 23 Feb 1999 09:16:34 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id IAB03766; Tue, 23 Feb 1999 08:15:59 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 23 Feb 1999 08:16:23 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id IAA10740 for ; Tue, 23 Feb 1999 08:15:56 -0600 (CST) Original-Received: from kline-station.ckdhr.com (qmailr@kline-station.ckdhr.com [209.192.160.22]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id JAA09591 for ; Tue, 23 Feb 1999 09:15:42 -0500 (EST) Original-Received: (qmail 9120 invoked by uid 139); 23 Feb 1999 14:15:16 -0000 Original-To: dp@kemtipp.ru X-Face: I8Alb*-ZdjN\/8k_QR,^l^m6GQB'S-B:}DVP].1HOw#tx:TX$k;Wl;4zqjWR|-jheM#? &beRf(!|0b0m=M~=%.Am>"QEY.(#Ys.%"s?z,hmwp&y0%p>9+T X-Attribution: ckd In-Reply-To: dp@kemtipp.ru's message of "20 Feb 1999 20:58:43 +0700" Original-Lines: 45 X-Mailer: Gnus v5.6.44/XEmacs 20.4 - "Emerald" Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:21458 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:21458 dp 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 * * Put location information in your DNS!