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

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

Re: change font in emacs after initialization


From: Michael Slass
Subject: Re: change font in emacs after initialization
Date: Thu, 12 Aug 2004 12:49:13 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Alberto Lusiani <alusiani@nospam.net> writes:

>Hello
>
>does anybody know how one could change the default font size in Emacs
>(21.2) after it has started with the default font?  It would be enough
>the height of the face named "default".
>
>I know how to do it with the customization menu, or with Esc x
>customize-face default and the changing the height.
>
>But I could not find a way to write some Elisp code that would do it.
>For instance, if I evaluate 
>
>(custom-set-faces '(default ((t (:height 144 :width normal)))))

custom-set-faces are only evaluated at load time.

try
(set-face-attribute 'default (selected-frame) :height 144 :width 'normal)

-- 
Mike Slass


reply via email to

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