From: Helmut Waitzmann <nn.throttle@xoxy.net>
To: info-gnus-english@gnu.org
Subject: Re: color of transient-mark-mode
Date: Mon, 16 Feb 2015 01:59:25 +0100 [thread overview]
Message-ID: <878ufy4qnt.fsf@helmutwaitzmann.news.arcor.de> (raw)
In-Reply-To: <87iof7cdco.fsf@engels.histomat.net>
Haines Brown <haines@engels.histomat.net> writes:
>Helmut Waitzmann <nn.throttle@xoxy.net> writes:
>> Hit
>>
>> M-x list-faces-display
>>
>> to get the Faces Buffer. Position the cursor at the line starting with
>> “region”. Press
>>
>> C-m
>>
>> customize and save.
>
>I thought this worked, but it turned out to apply only to the current
>buffer because it was not saved. This reason is that all my emacs
>sessions use -q and define their own init files.
>
>What I need is a string in the init files that defines the
>highlight/transient background. Could you be of help here?
I'm sorry, no. I use to customize the colors by means of X resources,
because colors are higly dependent on the color capabilities of the X
display (grayscale, pseudocolor, truecolor, …):
In a file, eg. named 'xdefaults.xrd' , I put the following lines:
! --START_OF_FILE xdefaults.xrd
/*
The following display classes have been copied from <X11/X.h>.
It would be better to just include <X11/X.h> here instead of
having copied the definitions, but I don't know how to get
the root of the X11 include directory tree.
Display classes used in opening the connection
Note that the statically allocated ones are even numbered
and the dynamically changeable ones are odd numbered
*/
#define StaticGray 0
#define GrayScale 1
#define StaticColor 2
#define PseudoColor 3
#define TrueColor 4
#define DirectColor 5
#ifdef COLOR
! color display; use colors
# define MY_SELECT_BACKGROUND_COLOR rgbi:0.8/1.0/0.8
# define MY_SELECT_FOREGROUND_COLOR black
#else
! no color display; use shades of grey
# define MY_SELECT_FOREGROUND_COLOR black
# define MY_SELECT_BACKGROUND_COLOR white
#endif
Emacs*region.attributeForeground: MY_SELECT_FOREGROUND_COLOR
Emacs*region.attributeBackground: MY_SELECT_BACKGROUND_COLOR
! --END_OF_FILE xdefaults.xrd
Then I send it to the X server by means of the following shell command:
$ xrdb < xdefaults.xrd
See the manual page xrdb(1).
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
prev parent reply other threads:[~2015-02-16 0:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-11 17:50 Haines Brown
2015-02-12 8:09 ` Helmut Waitzmann
[not found] ` <mailman.19746.1423728582.1147.info-gnus-english@gnu.org>
2015-02-12 13:40 ` Haines Brown
2015-02-12 16:18 ` Haines Brown
2015-02-13 6:07 ` Lars Ingebrigtsen
2015-02-13 6:08 ` Lars Ingebrigtsen
2015-02-16 0:59 ` Helmut Waitzmann [this message]
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=878ufy4qnt.fsf@helmutwaitzmann.news.arcor.de \
--to=nn.throttle@xoxy.net \
--cc=info-gnus-english@gnu.org \
--cc=oe.throttle@xoxy.net \
/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).