Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* color of transient-mark-mode
@ 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>
  0 siblings, 2 replies; 7+ messages in thread
From: Haines Brown @ 2015-02-11 17:50 UTC (permalink / raw)
  To: info-gnus-english

I'm running emacs 24.4.1 on Debian Wheezy, and the background color of
transient mark is too dark, making the highlighted text hard to
read. I'd like to change the background color to a lighter color, but
I'm sure this can be done yet in my current version of emacs.

Advice would be appreciated.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: color of transient-mark-mode
  2015-02-11 17:50 color of transient-mark-mode Haines Brown
@ 2015-02-12  8:09 ` Helmut Waitzmann
       [not found] ` <mailman.19746.1423728582.1147.info-gnus-english@gnu.org>
  1 sibling, 0 replies; 7+ messages in thread
From: Helmut Waitzmann @ 2015-02-12  8:09 UTC (permalink / raw)
  To: info-gnus-english

Haines Brown <haines@engels.histomat.net> writes:

>I'm running emacs 24.4.1 on Debian Wheezy, and the background color of
>transient mark is too dark, making the highlighted text hard to
>read. I'd like to change the background color to a lighter color, but
>I'm sure this can be done yet in my current version of emacs.

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.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: color of transient-mark-mode
       [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
  1 sibling, 0 replies; 7+ messages in thread
From: Haines Brown @ 2015-02-12 13:40 UTC (permalink / raw)
  To: info-gnus-english

Helmut Waitzmann <nn.throttle@xoxy.net> writes:

> Haines Brown <haines@engels.histomat.net> writes:
>
>>I'm running emacs 24.4.1 on Debian Wheezy, and the background color of
>>transient mark is too dark, making the highlighted text hard to
>>read. I'd like to change the background color to a lighter color, but
>>I'm sure this can be done yet in my current version of emacs.
>
> 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.

Thanks. I'm all set.
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: color of transient-mark-mode
       [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-16  0:59     ` Helmut Waitzmann
  1 sibling, 2 replies; 7+ messages in thread
From: Haines Brown @ 2015-02-12 16:18 UTC (permalink / raw)
  To: info-gnus-english

Helmut Waitzmann <nn.throttle@xoxy.net> writes:

> Haines Brown <haines@engels.histomat.net> writes:
>
>>I'm running emacs 24.4.1 on Debian Wheezy, and the background color of
>>transient mark is too dark, making the highlighted text hard to
>>read. I'd like to change the background color to a lighter color, but
>>I'm sure this can be done yet in my current version of emacs.
>
> 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?
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: color of transient-mark-mode
  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
  1 sibling, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2015-02-13  6:07 UTC (permalink / raw)
  To: info-gnus-english

Haines Brown <haines@engels.histomat.net> writes:

> 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?

When you hit "apply and save", the setting was saved to your .emacs
file, presumably.  Look for the `custom-set-variables' section in that
file and see what it saved, and put that in your other startup file.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: color of transient-mark-mode
  2015-02-13  6:07     ` Lars Ingebrigtsen
@ 2015-02-13  6:08       ` Lars Ingebrigtsen
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2015-02-13  6:08 UTC (permalink / raw)
  To: info-gnus-english

Lars Ingebrigtsen <larsi@gnus.org> writes:

> When you hit "apply and save", the setting was saved to your .emacs
> file, presumably.  Look for the `custom-set-variables' section in that
> file and see what it saved, and put that in your other startup file.

I mean the `custom-set-faces' section.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: color of transient-mark-mode
  2015-02-12 16:18   ` Haines Brown
  2015-02-13  6:07     ` Lars Ingebrigtsen
@ 2015-02-16  0:59     ` Helmut Waitzmann
  1 sibling, 0 replies; 7+ messages in thread
From: Helmut Waitzmann @ 2015-02-16  0:59 UTC (permalink / raw)
  To: info-gnus-english

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-02-16  0:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-11 17:50 color of transient-mark-mode 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 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).