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

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

Re: Change font for buffer


From: Heime
Subject: Re: Change font for buffer
Date: Sat, 22 Jun 2024 15:19:14 +0000





Sent with Proton Mail secure email.

On Saturday, June 22nd, 2024 at 10:54 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Sat, 22 Jun 2024 10:38:29 +0000
> > From: Heime heimeborgia@protonmail.com
> > Cc: help-gnu-emacs@gnu.org
> > 
> > On Saturday, June 22nd, 2024 at 9:52 AM, Eli Zaretskii eliz@gnu.org wrote:
> > 
> > > > > Interactively, use S-mouse-1.
> > > > > 
> > > > > In Lisp, use buffer-face-mode-invoke.
> > > > 
> > > > What command can I use to change the buffer face to URW Chancery ?
> > > 
> > > One of the above, as I just suggested.
> > 
> > What is the difference to using this instead ?
> > 
> > (set-face-attribute 'default nil :font "URW Chancery L-12")
> 
> 
> It isn't buffer-local, and you wanted the change for a specific
> buffer, AFAIU.

Have looked at the docstring, but it is not very clear to me how to call it
exactly.

(buffer-face-mode-invoke "URW Chancery L-12" t)



reply via email to

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