Re: color of transient-mark-mode

2015-02-15 Thread Helmut Waitzmann
Haines Brown hai...@engels.histomat.net writes:

Helmut Waitzmann nn.throt...@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


Re: color of transient-mark-mode

2015-02-13 Thread Lars Ingebrigtsen
Haines Brown hai...@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/
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: color of transient-mark-mode

2015-02-13 Thread Lars Ingebrigtsen
Lars Ingebrigtsen la...@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/
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: color of transient-mark-mode

2015-02-12 Thread Helmut Waitzmann
Haines Brown hai...@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


Re: color of transient-mark-mode

2015-02-12 Thread Haines Brown
Helmut Waitzmann nn.throt...@xoxy.net writes:

 Haines Brown hai...@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


Re: color of transient-mark-mode

2015-02-12 Thread Haines Brown
Helmut Waitzmann nn.throt...@xoxy.net writes:

 Haines Brown hai...@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


color of transient-mark-mode

2015-02-11 Thread Haines Brown
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.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english