From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Overriding some face attributes without changing the default(s) one(s)
Date: Sat, 07 Jun 2014 20:52:23 +0200 [thread overview]
Message-ID: <871tv05z88.fsf@web.de> (raw)
In-Reply-To: CAC8hHhnjZOupFp-xGq2E16R3vkyAKqj43efoeTBskzEzVhwzZA@mail.gmail.com
Alexandre LAURENT <shaoner@gmail.com> writes:
> Hi,
>
> I am trying to customize the whitespace-mode face for "long" lines.
> By default, a specific face is defined for long lines but it is kind
> of ugly in my case.
> I would actually like these lines to look the same color as usual with
> weight = bold, i.e. keeping the syntax highlighting (keywords,
> strings, function names, etc.), but overriding weight or underline
> attributes.
Just configure the face to use the bold attribute, and leave all other
attributes emtpy.
> From
> http://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Attributes.html,
> it seems that setting some attributes to undefined "tells Emacs to
> refer to a parent face", but not sure what the parent is in this case
> anyway.
This refers to inheritance, which is not directly related to what you
want.
> Since there are multiple different faces for syntax highlighting, and
> only one for long lines, I'm not sure that this is even possible. But
> if it is, any ideas?
What you want works well for me without doing anything special. The
`whitespace-line' face is "merged" with the normal font locking, and I
see the colors from syntax highlighting, but in bold for long lines.
I'm not completely sure if that works in older Emacs version.
Anyway, just try it!
Michael.
next prev parent reply other threads:[~2014-06-07 18:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-06 11:32 Overriding some face attributes without changing the default(s) one(s) Alexandre LAURENT
2014-06-07 6:55 ` Alex Kost
2014-06-07 18:52 ` Michael Heerdegen [this message]
2014-06-07 23:09 ` Alexandre LAURENT
2014-06-08 6:02 ` Alex Kost
2014-06-08 20:23 ` Alexandre LAURENT
2014-06-09 6:26 ` Alex Kost
2014-06-09 18:10 ` Alexandre LAURENT
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=871tv05z88.fsf@web.de \
--to=michael_heerdegen@web.de \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.