help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding some face attributes without changing the default(s) one(


From: Alex Kost
Subject: Re: Overriding some face attributes without changing the default(s) one(s)
Date: Sat, 07 Jun 2014 10:55:08 +0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Alexandre LAURENT (2014-06-06 15:32 +0400) wrote:

> 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.
>
> 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.
>
> Moreover, if I don't set foreground / background at all, these are
> just resets to the default face (I suppose).
>
> 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?
>
> Thanks,

I'm not sure I understand the question, but you can customize any face
like this:

  M-x customize-face whitespace-line

or a whole group:

  M-x customize-group whitespace

If you need to do it with elisp, try the following:

  (set-face-attribute 'whitespace-line nil :background 'unspecified :weight 
'bold)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]