Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs auto-scrolling log buffer

Tags:

logging

emacs

I am watching a development log in 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. How do I get a buffer than scrolls with my log?

like image 880
Eric Avatar asked Sep 30 '12 16:09

Eric


2 Answers

Then do a (set (make-local-variable 'window-point-insertion-type) t) inside this log buffer. 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.

like image 111
Stefan Avatar answered Oct 16 '22 06:10

Stefan


You didn't ask a question but I guess you want to use auto-revert-tail-mode.

like image 25
Oleg Pavliv Avatar answered Oct 16 '22 06:10

Oleg Pavliv