[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Overriding some face attributes without changing the default(s) one(
Re: Overriding some face attributes without changing the default(s) one(s)
Sat, 07 Jun 2014 20:52:23 +0200
Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux)
Alexandre LAURENT <address@hidden> writes:
> 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
Just configure the face to use the bold attribute, and leave all other
> 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
This refers to inheritance, which is not directly related to what you
> 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!