From: Sebastian Tennant <sebyte@smolny.plus.com>
To: help-gnu-emacs@gnu.org
Subject: Re: header-line-format
Date: Fri, 02 Nov 2007 12:58:55 +0200 [thread overview]
Message-ID: <877il0kj68.fsf@moley.moleskin.org> (raw)
In-Reply-To: 87ejf9aakz.fsf@moley.moleskin.org
Quoth Sebastian Tennant <sebyte@smolny.plus.com>:
> I want a _non-underlined_ header line that looks like this:
>
> a one, b two, c three, ...
> ^ ^ ^
> | | |
> +------+------+----- bold face, everything else default face
This is working fine for setting the bold letters:
(setq header-line-format
(mapconcat
(lambda (k)
(format "%s %s"
(propertize (car k) 'face 'bold)
(cdr k)))
'(("a" . "one,") ("b" . "two,") ("c" . "three,"))
" "))
and I can 'switch-off' the underlining by evaluating this at any time:
(set-face-attribute 'header-line nil :underline nil)
but this is a global adjustment to header-line face that affects Info
buffers for instance.
Anyone know of a way to tell Emacs to render header lines with a face
other than header-line face, enabling buffer-local control of the face
used in header lines?
Something like this would be great:
(set (make-local-variable 'header-line-face-name) 'my-header-line-face)
Sebastian
prev parent reply other threads:[~2007-11-02 10:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-01 22:02 header-line-format Sebastian Tennant
2007-11-02 10:58 ` Sebastian Tennant [this message]
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=877il0kj68.fsf@moley.moleskin.org \
--to=sebyte@smolny.plus.com \
--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.