emacs-trick-to-handle-bg-color-changes

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=)
Subject: Re: Status of Emacs 21.
Date: Fri, 13 Jul 2001 10:59:53 +0200

On 12 Jul 2001, Harry Putnam wrote:

> Have you unofficially figured out how to change the colors in
> console mode?  I get a really bright nearly invisible yellow in
> java-mode on here docs.  In a white terminal.  Looks really spiffy
> in black terminals.

Emacs 21 on a console might think it is running with a dark
background.  I use this:

(defun kai-dark-background (dummy)
  (add-to-list 'default-frame-alist '(background-mode . dark))
  (setq-default frame-background-mode 'dark)
  (mapcar 'frame-set-background-mode (frame-list)))
(add-to-list 'command-switch-alist '("-dark" . kai-dark-background))

This allows me to tell Emacs it is running on a dark background.
Something similar could be used for telling Emacs it's running on a
light background.

kai
-- 
~/.signature: No such file or directory


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu