|
From: | B. T. Raven |
Subject: | Re: how to move the contents of the buffer one line up/down? |
Date: | Mon, 14 Jul 2008 07:11:16 -0500 |
User-agent: | Thunderbird 2.0.0.14 (Windows/20080421) |
Tamas K Papp wrote:
Hi,I know that I can "center" my cursor with C-l. 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. Thanks, Tamas
Look at C-h f scroll-up and scroll-down. For a demo try: C-u 1 M-x scroll-up Maybe this works, I don't know. Evaluate it and try it: (global-set-key [(super q)] (lambda () (interactive) (scroll-up 1)))
[Prev in Thread] | Current Thread | [Next in Thread] |