From: Sten Drescher <dreschs@mpd.tandem.com>
Cc: campo@sunthpi3.difi.unipi.it, ding@ifi.uio.no
Subject: Re: default colors (dark background)
Date: Fri, 3 Nov 1995 18:15:17 -0600 (CST) [thread overview]
Message-ID: <14942.395015578$1042178876@news.gmane.org> (raw)
In-Reply-To: elf@mailhost.ee.ryerson.ca's message of
elf@mailhost.ee.ryerson.ca (Luis Fernandes) said:
LF> For those who have "light dark" backgrounds, like grey75, the
LF> default colours (dark blue & forest green) are very readable, but
LF> for those who prefer shades of "really dark" (like me; I use
LF> dodgerblue4), "dark blue" is unreadable, as is "forest green".
LF> I end up modifying both the aforementioned entries in gnus-cus.el,
LF> every time I install a new version of gnus.
LF> However, any choice that looks good on "really dark" looks too
LF> bright on "light dark"; trust me, I inadvertently (!) volunteered to
LF> design a default colour scheme and have been debating this problem
LF> for a while now.
LF> I can't see an easy solution to this without specifying an
LF> additional shade of background: 'really-dark, in addition to 'light
LF> and 'dark.
Well, using the [Help][Customize...] menu item to set the faces
works, sorta. Even this is bad, because I change colors on the fly. In
my .emacs, I have:
(if (eq window-system 'x)
(progn
(defun white () (interactive)
(set-mouse-color "green2")
(set-cursor-color "red")
(set-foreground-color "black")
(set-background-color "antiquewhite")
(set-face-background 'region "cyan3" (selected-frame))
(set-face-foreground 'region "black" (selected-frame))
(set-face-foreground 'modeline "yellow" (selected-frame) )
(set-face-background 'modeline "black" (selected-frame) )
)
(defun blue () (interactive)
(set-mouse-color "cyan3")
(set-cursor-color "cyan3")
(set-foreground-color "cyan3")
(set-background-color "darkslateblue")
(set-face-background 'region "LightGoldenrod4" (selected-frame))
(set-face-foreground 'region "cyan3" (selected-frame))
(set-face-foreground 'modeline "darkslateblue" (selected-frame) )
(set-face-background 'modeline "cyan3" (selected-frame) )
)
(defun green () (interactive)
(set-mouse-color "green")
(set-cursor-color "cyan3")
(set-foreground-color "yellow")
(set-background-color "dark green")
(set-face-background 'region "grey" (selected-frame))
(set-face-foreground 'region "black" (selected-frame))
(set-face-foreground 'modeline "white" (selected-frame) )
(set-face-background 'modeline "black" (selected-frame) )
)
(defun black () (interactive)
(set-mouse-color "green")
(set-cursor-color "firebrick3")
(set-foreground-color "sky blue")
(set-background-color "black")
(set-face-background 'region "grey" (selected-frame))
(set-face-foreground 'region "black" (selected-frame))
(set-face-foreground 'modeline "white" (selected-frame) )
(set-face-background 'modeline "black" (selected-frame) )
)
(defun red () (interactive)
(set-mouse-color "black")
(set-cursor-color "black")
(set-foreground-color "red")
(set-background-color "grey80")
(set-face-background 'region "grey" (selected-frame))
(set-face-foreground 'region "black" (selected-frame))
(set-face-foreground 'modeline "white" (selected-frame) )
(set-face-background 'modeline "black" (selected-frame) )
)
(black)
(set-default-font "*-courier-medium-r-*-*-12-*-*-*-m*")
(menu-bar-mode 1) ; turn it back on
(defvar color-menu (make-sparse-keymap "Colors"))
(define-key global-map [menu-bar Color] (cons "Color" color-menu))
(define-key color-menu [white] '("White" . white))
(define-key color-menu [blue] '("Blue" . blue))
(define-key color-menu [green] '("Green" . green))
(define-key color-menu [black] '("Black" . black))
(define-key color-menu [red] '("Red" . red))
))
This lets me change colors to suit my mood. What can I put in
the defuns to change gnus colors appropriately? (And, in a non-gnus
emacs question, how can I set one of the color schemes and the font as
the default for all frames, not just the first one?)
Sten
P.S. Sorry if there were mail bounces on the list from me today. Our
mail gateway screwed up the aliases. );
--
#include <disclaimer.h> /* Sten Drescher */
To get my PGP public key, send me email with your public key and
Subject: PGP key exchange
Key fingerprint = 90 5F 1D FD A6 7C 84 5E A9 D3 90 16 B2 44 C4 F3
next parent reply other threads:[~1995-11-04 0:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9510311257.AA07216@sunthpi3.sunthpi>
[not found] ` <9510311354.AA26702@gemini.ryerson.ca>
1995-11-04 0:15 ` Sten Drescher [this message]
[not found] ` <199511040015.SAA01979@galil.austnsc.tandem.com.>
1995-11-04 18:15 ` Luis Fernandes
1995-11-04 20:07 ` Per Abrahamsen
1995-11-06 17:20 ` Scott Blachowicz
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='14942.395015578$1042178876@news.gmane.org' \
--to=dreschs@mpd.tandem.com \
--cc=campo@sunthpi3.difi.unipi.it \
--cc=ding@ifi.uio.no \
/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).