How do I fix the cursor to the middle of the screen in Emacs, so that the page moves, not the cursor?

后端 未结 4 2123
后悔当初
后悔当初 2020-12-31 08:30

I\'d like to fix the cursor to the centre line of the screen, so that when I press Ctrl-N or Ctrl-P, the page itself moves up or down, and the cursor stays still.

Ha

4条回答
  •  臣服心动
    2020-12-31 09:02

    M-x scroll-lock-mode, which could be used to put the Scroll Lock key to good use too:

    (global-set-key (kbd "") 'scroll-lock-mode)
    

提交回复
热议问题