emacs-devel
[Top][All Lists]
Advanced

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

Re: recenter-ratio (was: Re: Toolbars on MacOSX)


From: Kim F. Storm
Subject: Re: recenter-ratio (was: Re: Toolbars on MacOSX)
Date: 13 May 2004 10:46:25 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Juri Linkov <address@hidden> writes:

> 
> The following patch introduces a new variable with the default value 2.
> Its value defines a ratio at which the cursor is placed by default
> from the top of the window relative to the window height.  It even
> can be set to the Golden Ratio if one wishes so:
> 
> (setq recenter-ratio (expt (/ (1+ (sqrt 5)) 2) 2))

Very nice idea!  

But I would rather call it recenter-position and make it a float
between 0.0 and 1.0 indicating the relative distance from the top of
the window, i.e. the defaul being 0.5.

(value <= 0 means top line, value >= 1 means bottom line)

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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