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

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

Re: how to move the contents of the buffer one line up/down?


From: Peter Dyballa
Subject: Re: how to move the contents of the buffer one line up/down?
Date: Mon, 14 Jul 2008 13:49:43 +0200


Am 14.07.2008 um 13:17 schrieb Tamas K Papp:

But sometimes it would be
really useful to do the following: have the contents of the buffer move up or down a couple of lines, with the cursor staying in the same place.

What function would do that?  Then I could bind it to a key.

(defun scroll-down-in-place (n)
  (interactive "p")
  (previous-line n)
  (scroll-down n))
(defun scroll-up-in-place (n)
  (interactive "p")
  (next-line n)
  (scroll-up n))

Far more on this list.

--
Greetings

  Pete     === -Q
             ==<__/% >>
_____________(_)address@hidden






reply via email to

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