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

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

Re: [h-e-w] Re: Changing frame font


From: Troy Daniels
Subject: Re: [h-e-w] Re: Changing frame font
Date: Wed, 19 May 2010 08:54:21 -0400



On Tue, May 18, 2010 at 6:58 PM, Uday S Reddy <address@hidden> wrote:
On 5/18/2010 3:35 PM, Gary Oberbrunner wrote:

; set default font attributes (for all frames)
(set-face-attribute 'default nil :font "Consolas-10.5")

Thanks, Gary.  The way to set the default font on the current frame would be

(set-face-attribute 'default (selected-frame) :font "Consolas-10.5")

However, this is not a proper replacement for the lost menu item in Emacs 23 because set-face-attribute is not a command.

(defun fix-broken-emacs-23 ()
"Command to replace bug introduced into emacs 23"
(interactive)
(set-face-attribute 'default (selected-frame) :font "Consolas-10.5"))

You might want to rename it, but this provides you the command that you want.  Just add it to .emacs.
 
 It is an elisp function, and one has to eval this _expression_ to get the job done.

Cheers,
Uday

PS:  Drew, thanks for the rant.  It give me quite a bit of satisfaction.


 




reply via email to

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