如何在 Emacs 中将光标固定到屏幕中间,以便页面移动,而不是光标移动? [英] How do I fix the cursor to the middle of the screen in Emacs, so that the page moves, not the cursor?

查看:27
本文介绍了如何在 Emacs 中将光标固定到屏幕中间,以便页面移动,而不是光标移动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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?

谢谢

埃德

推荐答案

尝试居中光标模式:

http://www.emacswiki.org/emacs/central-cursor-模式.el

如果您使用的是 MELPA,则可以通过 Mx 包安装 RET center-cursor-mode.

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

这篇关于如何在 Emacs 中将光标固定到屏幕中间,以便页面移动,而不是光标移动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆