help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Font in mode line


From: Eli Zaretskii
Subject: Re: Font in mode line
Date: Wed, 27 Nov 2013 05:45:26 +0200

> Date: Tue, 26 Nov 2013 22:22:59 +0100
> From: Francesco Mazzoli <address@hidden>
> 
> >   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).
                                       ^^^^^^^^^^^^^^^
That's why I said to type "M-x font-lock-mode RET" -- this turns OFF
font lock.  If you don't do that, font-lock removes the font text
properties from the inserted text, and you don't see them.  Please
don't skip anything in those steps, they are all important.



reply via email to

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