unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Alexandre LAURENT <shaoner@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Overriding some face attributes without changing the default(s) one(s)
Date: Sun, 8 Jun 2014 01:09:09 +0200	[thread overview]
Message-ID: <CAC8hHhmF5E_Fj_JHTjj0pqY99bKcGXR8m3oYqLG4CRJ+Rvon9w@mail.gmail.com> (raw)
In-Reply-To: <871tv05z88.fsf@web.de>

On Sat, Jun 7, 2014 at 8:52 PM, Michael Heerdegen
<michael_heerdegen@web.de> wrote:
> Just configure the face to use the bold attribute, and leave all other
> attributes emtpy.
>
Well, weird because that's exactly what I did but maybe not the right way.
In my case, I configure this face in a theme like this:

(custom-theme-set-faces
 'monokai-nox
;; ...
'(whitespace-line ((t (:weight bold))))
;; ...
)
If I open a C file, for each long line, the whole line still uses the
default whitespace-line face + bold (which prevents the syntax
highlighting)

> 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.
>
Good to know, I'm going to test with an empty emacs config + the
configuration of the whitespace-line face.

> I'm not completely sure if that works in older Emacs version.
I'm using emacs 24.3.1 so this should work I suppose.

Thanks,

-- 
Alexandre LAURENT



  reply	other threads:[~2014-06-07 23:09 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
2014-06-07 23:09   ` Alexandre LAURENT [this message]
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

  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=CAC8hHhmF5E_Fj_JHTjj0pqY99bKcGXR8m3oYqLG4CRJ+Rvon9w@mail.gmail.com \
    --to=shaoner@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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).