[Top][All Lists]

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

Re: scroll-conservatively default

From: Andreas Schwab
Subject: Re: scroll-conservatively default
Date: Thu, 06 Dec 2007 12:36:43 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

David Kastrup <address@hidden> writes:

> Being able to make the material one needs to view as a unit appear on
> the screen painlessly is one of the most important and frequent
> operations for a screen editor.
> Emacs' keybindings in connection with the scrolling behavior don't help
> (vi has extra keybindings C-e and C-y for scrolling without moving
> point).

I have this since ages:

(defun scroll-up-in-place (n)
  (interactive "p")
  (scroll-up n))

(defun scroll-down-in-place (n)
  (interactive "p")
  (scroll-down n))

(define-key global-map [(shift next)] 'scroll-up-in-place)
(define-key global-map [(shift prior)] 'scroll-down-in-place)


Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

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