From: Haines Brown <haines@engels.histomat.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing color of transient mark
Date: Thu, 12 Feb 2015 15:08:09 -0500 [thread overview]
Message-ID: <871tluopue.fsf@engels.histomat.net> (raw)
In-Reply-To: mailman.19769.1423767792.1147.help-gnu-emacs@gnu.org
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"))))
)
prev parent reply other threads:[~2015-02-12 20:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871tluopue.fsf@engels.histomat.net \
--to=haines@engels.histomat.net \
--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.
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).