all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* header-line-format
@ 2007-11-01 22:02 Sebastian Tennant
  2007-11-02 10:58 ` header-line-format Sebastian Tennant
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Tennant @ 2007-11-01 22:02 UTC (permalink / raw)
  To: help-gnu-emacs

Hi all,

I want a _non-underlined_ header line that looks like this:

 a one, b two, c, three ...
 ^      ^      ^
 |      |      |
 +------+------+----- bold face, everything else default face

I have this:

 (setq header-line-format
       (mapconcat
        (lambda (k)
          (format "%s %s,"
                  (propertize (car k) 'face 'bold)
                  (propertize (cdr k) 'face 'default)))
        '(("a" . "one") ("b" . "two") ("c" . "three"))
        " "))

but everything apart from 'one', 'two' and 'three' is underlined,
including the empty space all the way to right side of the window.

How can I 'switch-off' the underlining across the whole window/string?

I've tried propertizing the whole string created by the mapconcat
function:

 (setq header-line-format
       (propertize 
         (mapconcat
         [...]
         " ")
       'underline nil))

without success.

Sebastian

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: header-line-format
  2007-11-01 22:02 header-line-format Sebastian Tennant
@ 2007-11-02 10:58 ` Sebastian Tennant
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Tennant @ 2007-11-02 10:58 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-02 10:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-01 22:02 header-line-format Sebastian Tennant
2007-11-02 10:58 ` header-line-format Sebastian Tennant

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.