防止Emacs滚动到缓冲区末尾 [英] Keep Emacs from scrolling past end of buffer

查看:88
本文介绍了防止Emacs滚动到缓冲区末尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我用鼠标或滚动条滚动到缓冲区的末尾时,是否可以添加任何内容以阻止emacs添加新行?我已经有

Is there anything I can add to my .emacs file to keep emacs from adding new lines when I scroll past the end of the buffer with my mouse or the scrollbar? I already have

(setq next-line-add-newlines nil)

,但这似乎仅在我使用键盘移动时适用。我对该主题进行了很多搜索,无济于事。

but that seems to only be applying to when I am moving with the keyboard. I've done quite a few searches on the subject to no avail.

任何提示都非常感谢!谢谢。

Any tips are greatly appreciated! Thank you.

推荐答案

检查变量 next-line-add-newlines 的值。 code>在行为异常的缓冲区/模式中。您可以这样操作: Ch v next-line-add-newlines (或 Mx describe-variable )。

Check the value of the the variable next-line-add-newlines in the buffers/modes that it's misbehaving. You can do so by: C-h v next-line-add-newlines (or M-x describe-variable).

可能是在主要/次要模式下启用的。

It could be something in the major/minor mode that's enabling it.

这篇关于防止Emacs滚动到缓冲区末尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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