all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glyn Millington <glyn.millington@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: a dark theme?
Date: Thu, 17 Jul 2014 07:38:16 +0100	[thread overview]
Message-ID: <87oawomqw7.fsf@nowhere.org> (raw)
In-Reply-To: 87egxksssf.fsf@skimble.plus.com

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> Emanuel Berg <embe8573@student.uu.se> writes:
>
>> Sharon Kimble <boudiccas@skimble.plus.com> writes:
>>
>>> I'm hoping that someone can advise me, I'm looking
>>> for a theme to use with emacs and gnus which has a
>>> dark background, but also allows me to read all the
>>> text in a gmail which currently appears as
>>> nearly-white on a slightly-grey background.
>>
>> "All the text in a gmail"?
>>
>> To get a default bright-on-dark "theme" (which I highly
>> recommend to reduce eye strain) simply evaluate this:
>>
>> (set-face-attribute 'default nil
>>                     :foreground "cyan"
>>                     :background "black"
>>                     :bold nil)
>>
>> Change "cyan" to whatever fits you the best. I use a
>> Linux VT/tty/"the console" and you probably use X. That
>> means I can't help you with the colors, but try
>> "green", "blue", etc. See if you can find something you
>> like; if not, dig deeper. Probably you don't won't bold
>> for ordinary text, save that option for faces that
>> highlight stuff (headers, keywords, and so on).
>>
>> If you run into some text that you don't like the color
>> of, use this defun to identify the face:
>>
>> (defun what-face (pos)
>>   (interactive "d")
>>   (let ((face (or (get-char-property (point) 'read-face-name)
>>                   (get-char-property (point) 'face))))
>>     (if face (message " Face: %s" face)
>>       (message " No face at %d." pos) )))
>
> Thanks for this Emanuel, I've doctored my init.el and put the above in
> it, at the end, which is where I always put temporary/testing code,
> unless it goes into my setup-testing.el. I then ran it when my mouse was
> on the problem text in a gmail, and this is what it found -
> ╭────
> │Face: ((:foreground #5e5e5e) (:foreground #5e5e5e) (:background #727272))
> ╰────
>
> Perhaps I'm misunderstanding you, but how can I customise that? Its got
> no name or handle that I can hook on to!



This looks like rather hard work!

If you move the cursor to the text whose face you would like to customize
and do M-x customize-face, the emacs offers you the face at point to be
customized eg.

Customize face (default `gnus-cite-2'):

Just hit return  and you will be taken into the Customize menu for that
face.  Or  use that face name for the magic you want to work in init.el

Emacs 24.3.1 here on Linux


atb


Glyn




  reply	other threads:[~2014-07-17  6:38 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.5512.1405536842.1147.help-gnu-emacs@gnu.org>
2014-07-16 20:32 ` a dark theme? Emanuel Berg
2014-07-17  1:00   ` Sharon Kimble
2014-07-17  6:38     ` Glyn Millington [this message]
     [not found]     ` <mailman.5544.1405580673.1147.help-gnu-emacs@gnu.org>
2014-07-17 13:20       ` Emanuel Berg
2014-07-17 13:47         ` Glyn Millington
     [not found]   ` <mailman.5534.1405558868.1147.help-gnu-emacs@gnu.org>
2014-07-17  1:18     ` Emanuel Berg
2014-07-17  5:10       ` Sharon Kimble
2014-07-17 12:30         ` Robert Thorpe
2014-07-17 16:21           ` Sharon Kimble
     [not found]           ` <mailman.5565.1405614093.1147.help-gnu-emacs@gnu.org>
2014-07-17 22:19             ` Emanuel Berg
2014-07-18  0:49               ` Sharon Kimble
     [not found]               ` <mailman.5581.1405644617.1147.help-gnu-emacs@gnu.org>
2014-07-18  1:08                 ` Emanuel Berg
2014-07-18  3:57                   ` Sharon Kimble
2014-07-18 13:39                     ` Tassilo Horn
     [not found]                     ` <mailman.5622.1405690890.1147.help-gnu-emacs@gnu.org>
2014-07-18 20:29                       ` Emanuel Berg
2014-07-21 17:26                         ` Tassilo Horn
     [not found]                         ` <mailman.5827.1405963747.1147.help-gnu-emacs@gnu.org>
2014-07-21 22:15                           ` Emanuel Berg
2014-07-23 12:34                             ` Tassilo Horn
     [not found]                             ` <mailman.5896.1406119000.1147.help-gnu-emacs@gnu.org>
2014-07-23 14:31                               ` Emanuel Berg
2014-07-21 22:31                           ` Emanuel Berg
2014-07-18  6:36                   ` Alan Schmitt
     [not found]                   ` <mailman.5586.1405655879.1147.help-gnu-emacs@gnu.org>
2014-07-18 20:19                     ` Emanuel Berg
     [not found]                   ` <mailman.5597.1405665401.1147.help-gnu-emacs@gnu.org>
2014-07-18 20:23                     ` Emanuel Berg
2014-07-18 13:33               ` Tassilo Horn
2014-07-18 16:47                 ` Sharon Kimble
2014-07-19  8:29                   ` Tassilo Horn
     [not found]                 ` <mailman.5633.1405702041.1147.help-gnu-emacs@gnu.org>
2014-07-18 20:30                   ` Emanuel Berg
     [not found]       ` <mailman.5543.1405573869.1147.help-gnu-emacs@gnu.org>
2014-07-17 13:08         ` Emanuel Berg
2014-07-16 18:53 Sharon Kimble
2014-07-16 19:53 ` Allan Streib
     [not found] ` <mailman.5517.1405540466.1147.help-gnu-emacs@gnu.org>
2014-07-16 20:36   ` Emanuel Berg
2014-07-17  2:14 ` Sujith Manoharan
2014-07-17  7:24 ` Tassilo Horn
2014-07-17 12:35   ` Sharon Kimble
     [not found] ` <mailman.5546.1405582006.1147.help-gnu-emacs@gnu.org>
2014-07-17 13:22   ` Emanuel Berg
2014-07-17 15:27     ` Sauli Heinola
     [not found]     ` <mailman.5564.1405611025.1147.help-gnu-emacs@gnu.org>
2014-07-17 23:02       ` Emanuel Berg
2014-07-18 13:44         ` Tassilo Horn
     [not found]         ` <mailman.5624.1405691179.1147.help-gnu-emacs@gnu.org>
2014-07-18 20:37           ` Emanuel Berg
2014-07-17 15:08 ` 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=87oawomqw7.fsf@nowhere.org \
    --to=glyn.millington@gmail.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.