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

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

Re: [h-e-w] emacs geometry


From: Chris McMahan
Subject: Re: [h-e-w] emacs geometry
Date: Thu, 1 Aug 2002 10:17:01 -0400

While we're on the topic of geometry...

I have some functions that set the initial height of the emacs screen
based on the selected font and the screen resolution, to maximize the
usable area of emacs. I can post them if there's interest.

 - Chris


Paul Whitfield writes:
>Richard M. Heiberger wrote:
>> I have the following in my .emacs
>> 
>> ;;; This setting gives me a size 12 on a 1600x1200 display.
>> (set-default-font "-*-Courier New-normal-r-*-*-16-97-*-*-c-*-*-iso8859-1")
>> 
>> ;;; This gives me full height of the screen
>> (defun resize-frame ()
>>   "Resize current frame to 81 52"
>>   (interactive)
>>   (set-frame-size (selected-frame) 81 52))
>> (resize-frame)
>> 
>> ;;; to recover size after readjusting it manually I use
>> (global-set-key [C-f11] 'resize-frame)
>> 
>> ;;; On 1024x768 I use
>> (defun resize-frame ()
>>   "Resize current frame to 81 41"
>>   (interactive)
>>   (set-frame-size (selected-frame) 81 41))
>> 
>
>The advantage of doing it via the registry is that
>emacs does not draw the frame, then change fonts and redraw the
>frame. (This is equivilent to setting about a .xdefaults file
>under X)
>
>Thus saving valuable seconds and looking much less ugly.
>
>Regards
>Paul
>
>
>

-- 
    ================================
    Chris McMahan | address@hidden
    ================================




reply via email to

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