Search code examples
emacsscrollelisp

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


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.

Has anyone got any tips on how to achieve this?

Thanks

Ed


Solution

  • 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.