如何将光标固定在Emacs中的屏幕中间,以便页面移动而不是光标?

Sin*_*ned 13 emacs scroll elisp

我想将光标固定在屏幕的中心线上,这样当我按Ctrl-N或Ctrl-P时,页面本身会向上或向下移动,光标会保持不动.

有没有人有任何关于如何实现这一目标的提示?

谢谢

埃德

sco*_*zer 13

尝试居中光标模式:

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

如果您正在使用MELPA,则可以使用它M-x package-install RET centered-cursor-mode.


Lau*_*nis 10

M-x scroll-lock-mode,也可以用来放置Scroll Lock键:

(global-set-key (kbd "<Scroll_Lock>") 'scroll-lock-mode)
Run Code Online (Sandbox Code Playgroud)