how to stop cursor from moving when scrolling?

  • Follow


When I scroll through some text in emacs the cursor follows. How do I make
the cursor stay where I put it??
0
Reply Paminu 10/7/2005 8:04:51 AM

Paminu wrote:
> When I scroll through some text in emacs the cursor follows. How do I make
> the cursor stay where I put it??

Do you mean 'where I put it' relative to the screen or to the text?

If you mean you don't want point to move even though it's part of
the buffer is no longer on the screen I don't think that's possible.
Using an indirect buffer is one workaround.

Another is to set up some register hotkeys.
(global-set-key [S-f1] (lambda ()(interactive) (point-to-register 1)))
(global-set-key [f1]   (lambda ()(interactive) (jump-to-register 1)))

(global-set-key [S-f2] (lambda ()(interactive) (point-to-register 2)))
(global-set-key [f2]   (lambda ()(interactive) (jump-to-register 2)))

These let you quickly define points you'd like to jump to and
then jump to them.

You can make register-alist buffer local if you want but often
I find it convenient to leave it global.
I wish there were 2 sets.  One buffer local and the other not.
As usual, too many other things have higher priority....

0
Reply rgb 10/7/2005 4:09:35 PM


1 Replies
817 Views

(page loaded in 0.043 seconds)

Similiar Articles:













7/23/2012 10:37:56 AM


Reply: