all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bob Proulx <bob@proulx.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing Terminal (-nw) Base Colors
Date: Mon, 21 Jan 2013 16:49:15 -0700	[thread overview]
Message-ID: <20130121234915.GA16592@dismay.proulx.com> (raw)
In-Reply-To: <m2r4leh16z.fsf@samograd.ca>

Burton Samograd wrote:
> When I run emacs in -nw mode on a black (-rv) terminal, some of the
> default text colors are very difficult to read, mostly in the blue
> range.  In certain cases I can modify a the individual color value, such
> as in the eshell prompt, but I would like to perform a global
> modification of the 'dark blue' color to be, say, bright yellow.

I also use a light foreground on dark background.  Several of the
default emacs colors are difficult and some are impossible.  Here are
some of the modifications I make.  Usually when I post something like
this others tear the suggestions apart as being terrible.  So beware.
They work for me.

  ;; Disable dark blue on dark background in minibuffer.
  (set-face-foreground 'minibuffer-prompt nil)
  ;; Disable nasty highlighting in electric-buffer-mode.
  ;; We use eval-after-load to make this happen after ebuf-menu is loaded
  ;; as that's where the "bad" definition of electric-buffer-mode is located.
  (eval-after-load "ebuff-menu" '(defun electric-buffer-update-highlight ()))
  ;; Have *Buffer List* use old-style header.
  (setq Buffer-menu-use-header-line nil)

> I've heard of but never used 'color themes' for emacs.  Would these
> help solve this problem?

At one time one of the highlight modules had a way to specify whether
the default colors were light or dark.  I have lost the ability to set
this.  I have recently searched but it isn't immediately obvious.

At one time crawling through the code I found where the elisp would
try to determine the default Xresource values to automatically
determine whether it is a light or dark background.  I am guessing
that even if that worked that your use of -rv on the command line
would defeat that mechanism's ability to determine this
automatically.  Therefore I suggest setting these explicitly.

  XTerm*Foreground:White
  XTerm*Background:Black

Or whatever is appropriate for you.  It might even enable the emacs
elisp to do the right thing automatically.

Bob



  parent reply	other threads:[~2013-01-21 23:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-21 17:53 Changing Terminal (-nw) Base Colors Burton Samograd
2013-01-21 18:24 ` Dan Espen
2013-01-21 20:46   ` Burton Samograd
2013-01-21 23:49 ` Bob Proulx [this message]
2013-01-22 12:46 ` hjuvi
2013-01-22 22:42 ` Suvayu Ali

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=20130121234915.GA16592@dismay.proulx.com \
    --to=bob@proulx.com \
    --cc=help-gnu-emacs@gnu.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.
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.