all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Alexandre LAURENT <shaoner@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Overriding some face attributes without changing the default(s) one(s)
Date: Sat, 07 Jun 2014 10:55:08 +0400	[thread overview]
Message-ID: <87y4x9gqer.fsf@gmail.com> (raw)
In-Reply-To: <CAC8hHhnjZOupFp-xGq2E16R3vkyAKqj43efoeTBskzEzVhwzZA@mail.gmail.com> (Alexandre LAURENT's message of "Fri, 6 Jun 2014 13:32:41 +0200")

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	other threads:[~2014-06-07  6:55 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 [this message]
2014-06-07 18:52 ` Michael Heerdegen
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=87y4x9gqer.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=shaoner@gmail.com \
    /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.