简体   繁体   English

Emacs自动滚动日志缓冲区

[英]Emacs auto-scrolling log buffer

I am watching a development log in Emacs. 我正在观看Emacs的开发日志。 However whenever I open this log it opens in fundamental mode and the buffer does not scroll with the content of the log. 但是,无论何时打开此日志,它都会以基本模式打开,并且缓冲区不会随日志内容一起滚动。 It should be noted that this is very low volume log that only collects information on the errors I make when writing source. 应该注意的是,这是一个非常低容量的日志,它只收集有关我在编写源代码时所犯错误的信息。 Its very convenient for me to see this in Emacs since the log responds to command I enter in the editor. 因为日志响应我在编辑器中输入的命令,所以在Emacs中看到它非常方便。 How do I get a buffer than scrolls with my log? 如何使用我的日志滚动缓冲区?

你没有问一个问题,但我想你想使用auto-revert-tail-mode

Then do a (set (make-local-variable 'window-point-insertion-type) t) inside this log buffer. 然后在此日志缓冲区中执行(set (make-local-variable 'window-point-insertion-type) t) If the cursor is then placed at the end of the buffer, it should stay there (at the end) when text is appended, thus causing scrolling as needed. 如果光标随后放在缓冲区的末尾,则应该在附加文本时保留光标(最后),从而根据需要进行滚动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM