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

后端 未结 4 2113
后悔当初
后悔当初 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 08:57

    Try centered-cursor mode:

    http://www.emacswiki.org/emacs/centered-cursor-mode.el

    If you're using MELPA, it's available by M-x package-install RET centered-cursor-mode.

提交回复
热议问题