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

查看:402
本文介绍了如何将光标固定在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?

谢谢

Ed

推荐答案

尝试居中光标模式:

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

如果您使用 MELPA ,可以通过 Mx package-install RET 中心光标模式

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

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

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