[Top][All Lists]

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

Re: Font in mode line

From: Francesco Mazzoli
Subject: Re: Font in mode line
Date: Tue, 26 Nov 2013 22:22:59 +0100

> > I'm not sure how to use `format-mode-line' the way you described.
> Like this:
>   C-x b *scratch* RET
>   M-x font-lock-mode RET
>   Now type this:
>    (insert (format-mode-line mode-line-format))
>   and press C-j at the rightmost closing parenthesis.
> > If I format `mode- line-format' there doesn't seem to be an obvious
> > way to infer the faces that are used to render the various elements.
> Go to one of the problematic characters and type "C-u C-x =".  Emacs
> will then show the font it used to display that character.

Thanks, the part I was missing is `insert'.

However, this doen't seem to work.  Whatever my mode line looks like,
the inserted text always look plain (font lock is on).  For example if I set

    (set-face-attribute 'mode-line-buffer-id nil :font "8x13" :foreground nil)

The buffer id in the mode line displays red, but when I execute

    (insert (format-mode-line mode-line-format))

In *scratch* I get the contents of the mode line rendered with normal


reply via email to

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