unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Changing color of transient mark
@ 2015-02-11 18:37 Haines Brown
  2015-02-11 18:42 ` Drew Adams
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Haines Brown @ 2015-02-11 18:37 UTC (permalink / raw)
  To: help-gnu-emacs

I'm running emacs 24.4.1, and the transient mark color is a very dark
blue. This makes the highlighted text hard to read.

Id like to redefine the background color something like this:

  ((transient-mark-mode 1)
    (set-background-color "mistyrose")
    (set-foreground-color "firebrick"))

but of course this does not work. Short of running PC mode, how can I
change at least the highlighting background color?



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

* RE: Changing color of transient mark
  2015-02-11 18:37 Changing color of transient mark Haines Brown
@ 2015-02-11 18:42 ` Drew Adams
  2015-02-11 19:09 ` Marcin Borkowski
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Drew Adams @ 2015-02-11 18:42 UTC (permalink / raw)
  To: Haines Brown, help-gnu-emacs

> I'm running emacs 24.4.1, and the transient mark color is a very dark
> blue. This makes the highlighted text hard to read.
> 
> Id like to redefine the background color something like this:
> 
>   ((transient-mark-mode 1)
>     (set-background-color "mistyrose")
>     (set-foreground-color "firebrick"))
> 
> but of course this does not work. Short of running PC mode, how can I
> change at least the highlighting background color?

Customize face `region':

M-x customize-face region



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

* Re: Changing color of transient mark
  2015-02-11 18:37 Changing color of transient mark Haines Brown
  2015-02-11 18:42 ` Drew Adams
@ 2015-02-11 19:09 ` Marcin Borkowski
       [not found] ` <mailman.19725.1423680157.1147.help-gnu-emacs@gnu.org>
       [not found] ` <mailman.19728.1423681788.1147.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 8+ messages in thread
From: Marcin Borkowski @ 2015-02-11 19:09 UTC (permalink / raw)
  To: help-gnu-emacs


On 2015-02-11, at 19:37, Haines Brown <haines@engels.histomat.net> wrote:

> I'm running emacs 24.4.1, and the transient mark color is a very dark
> blue. This makes the highlighted text hard to read.
>
> Id like to redefine the background color something like this:
>
>   ((transient-mark-mode 1)
>     (set-background-color "mistyrose")
>     (set-foreground-color "firebrick"))
>
> but of course this does not work. Short of running PC mode, how can I
> change at least the highlighting background color?

See the function `set-face-attribute'.

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



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

* Re: Changing color of transient mark
       [not found] ` <mailman.19725.1423680157.1147.help-gnu-emacs@gnu.org>
@ 2015-02-11 21:01   ` Haines Brown
  2015-02-11 21:35     ` Drew Adams
  0 siblings, 1 reply; 8+ messages in thread
From: Haines Brown @ 2015-02-11 21:01 UTC (permalink / raw)
  To: help-gnu-emacs

Drew Adams <drew.adams@oracle.com> writes:

>> I'm running emacs 24.4.1, and the transient mark color is a very dark
>> blue. This makes the highlighted text hard to read.

> Customize face `region':

> M-x customize-face region

Took some stumbling about, but finally got it (wheat background). Thanks


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

* RE: Changing color of transient mark
  2015-02-11 21:01   ` Haines Brown
@ 2015-02-11 21:35     ` Drew Adams
  0 siblings, 0 replies; 8+ messages in thread
From: Drew Adams @ 2015-02-11 21:35 UTC (permalink / raw)
  To: Haines Brown, help-gnu-emacs

> >> I'm running emacs 24.4.1, and the transient mark color is a very dark
> >> blue. This makes the highlighted text hard to read.
> 
> > Customize face `region':
> > M-x customize-face region
> 
> Took some stumbling about, but finally got it (wheat background). Thanks

See this doc bug report I just filed:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19841

If you cannot find some information you need, and you later find it
without the doc, and you think the doc should have helped you find
it, then consider filing a doc bug: `M-x report-emacs-bug'.

For simple stuff like this (at a minimum), it helps to get in the
habit of asking Emacs.  Unfortunately, in this case the doc isn't
(yet) as helpful as it should be.



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

* Re: Changing color of transient mark
       [not found] ` <mailman.19728.1423681788.1147.help-gnu-emacs@gnu.org>
@ 2015-02-12 16:36   ` Haines Brown
  2015-02-12 19:03     ` Drew Adams
       [not found]     ` <mailman.19769.1423767792.1147.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Haines Brown @ 2015-02-12 16:36 UTC (permalink / raw)
  To: help-gnu-emacs

Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:

> On 2015-02-11, at 19:37, Haines Brown <haines@engels.histomat.net> wrote:
>
>> I'm running emacs 24.4.1, and the transient mark color is a very dark
>> blue. This makes the highlighted text hard to read.
>>
>> Id like to redefine the background color something like this:
>>
>>   ((transient-mark-mode 1)
>>     (set-background-color "mistyrose")
>>     (set-foreground-color "firebrick"))

> See the function `set-face-attribute'.

Because all my emacs sessions have the -q option and use their own init
files, I'm unable to save the highlight background color.

What lisp code would define the background within init files? 


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

* RE: Changing color of transient mark
  2015-02-12 16:36   ` Haines Brown
@ 2015-02-12 19:03     ` Drew Adams
       [not found]     ` <mailman.19769.1423767792.1147.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Drew Adams @ 2015-02-12 19:03 UTC (permalink / raw)
  To: Haines Brown, help-gnu-emacs


> >> I'm running emacs 24.4.1, and the transient mark color is a very dark
> >> blue. This makes the highlighted text hard to read.
> >> Id like to redefine the background color something like this:
> >>
> >>   ((transient-mark-mode 1)
> >>     (set-background-color "mistyrose")
> >>     (set-foreground-color "firebrick"))
> 
> > See the function `set-face-attribute'.
> 
> Because all my emacs sessions have the -q option and use their own init
> files, I'm unable to save the highlight background color.
> 
> What lisp code would define the background within init files?

I already answered that:  `M-x customize-face region' and save your
changes.

That inserts the necessary Lisp code in your init file, or (better) if
you have defined `custom-file' then into your `custom-file'.

If you try it then you will see what Lisp code to use. ;-)



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

* Re: Changing color of transient mark
       [not found]     ` <mailman.19769.1423767792.1147.help-gnu-emacs@gnu.org>
@ 2015-02-12 20:08       ` Haines Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Haines Brown @ 2015-02-12 20:08 UTC (permalink / raw)
  To: help-gnu-emacs

Drew Adams <drew.adams@oracle.com> writes:

>> >> I'm running emacs 24.4.1, and the transient mark color is a very dark
>> >> blue. This makes the highlighted text hard to read.
>> >> Id like to redefine the background color something like this:
>> >>
>> >>   ((transient-mark-mode 1)
>> >>     (set-background-color "mistyrose")
>> >>     (set-foreground-color "firebrick"))
>> 
>> > See the function `set-face-attribute'.
>> 
>> Because all my emacs sessions have the -q option and use their own init
>> files, I'm unable to save the highlight background color.
>> 
>> What lisp code would define the background within init files?
>
> I already answered that:  `M-x customize-face region' and save your
> changes.
>
> That inserts the necessary Lisp code in your init file, or (better) if
> you have defined `custom-file' then into your `custom-file'.
>
> If you try it then you will see what Lisp code to use. ;-)

Thanks. I apparenly had not saved customization or missed the relevant
lines in the resulting init file. Things now working in an emacs session
not using that init file and with the following stanza:

(custom-set-faces
  '(default ((t (:family "Courier 10 Pitch" :foundry "bitstream" \
            :slant normal :weight normal :height 122 :width normal))))
  '(highlight ((t (:background "wheat"))))
  '(region ((t (:background "wheat" :distant-foreground \
           "gtk_selection_fg_color"))))
)


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

end of thread, other threads:[~2015-02-12 20:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-11 18:37 Changing color of transient mark Haines Brown
2015-02-11 18:42 ` Drew Adams
2015-02-11 19:09 ` Marcin Borkowski
     [not found] ` <mailman.19725.1423680157.1147.help-gnu-emacs@gnu.org>
2015-02-11 21:01   ` Haines Brown
2015-02-11 21:35     ` Drew Adams
     [not found] ` <mailman.19728.1423681788.1147.help-gnu-emacs@gnu.org>
2015-02-12 16:36   ` Haines Brown
2015-02-12 19:03     ` Drew Adams
     [not found]     ` <mailman.19769.1423767792.1147.help-gnu-emacs@gnu.org>
2015-02-12 20:08       ` Haines Brown

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 read-only IMAP folder(s) and NNTP newsgroup(s).