From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: how to fix too-dark blue keywords with black background
Date: Fri, 10 Jun 2016 16:04:53 +0200 [thread overview]
Message-ID: <86ziqtp2be.fsf@student.uu.se> (raw)
In-Reply-To: 0e8eb14f-14b5-4348-aba5-dacaca1a70ec@googlegroups.com
barrchris@gmail.com writes:
> I only need to change one color - is there
> a simple way to do this in Putty or in emacs?
Place point at the text which has the color,
then use this function
(defun what-face (pos)
(interactive "d")
(let((face (or (get-char-property pos 'face)
(get-char-property pos 'read-cf-name) )))
(message " Face: %s" (or face "(no face!)")) ))
to find out what face it is.
If it is, say, `w3m-image-anchor', use this to
set it to white foreground, green background,
using the bold (or bright) version of white
(the fifth argument being t).
(modify-face 'w3m-image-anchor "white" "green" nil t)
Eval these for cool effects with the Mode line:
(modify-face 'mode-line "white" "blue" nil t)
(modify-face 'mode-line-inactive "white" "red" nil nil)
Most often you don't want a background, so set it to nil:
(modify-face 'gnus-group-news-6 "blue" nil nil t)
And so on. Dig deep...
If you want to change the color itself, i.e.
what RGB composition it means to be "white"
(and green, blue, red, etc.) I do this in the
Linux VTs and in xterm [1] - in PuTTY,
a Windows ssh/telnet client, I suspect it is
still possible.
[1] http://user.it.uu.se/~embe8573/blogomatic/emacs/colors.html
--
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
- so far: 48 Blogomatic articles -
next prev parent reply other threads:[~2016-06-10 14:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-03 19:26 how to fix too-dark blue keywords with black background barrchris
2016-06-03 21:44 ` Emanuel Berg
2016-06-10 13:41 ` barrchris
2016-06-10 14:04 ` Emanuel Berg [this message]
2016-06-10 14:52 ` barrchris
2016-06-10 16:21 ` tomas
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=86ziqtp2be.fsf@student.uu.se \
--to=embe8573@student.uu.se \
--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.