Topics include: programming, Apple, Unix, gadgets, large-scale web sites and other nerdy stuff.

How to scroll compiler output in Emacs

2007-10-31 14:44:39

I've used M-x compile in emacs for years. Like for 17 years. My fingers automatically do ^x^m that I have had as the key binding for that command, as soon as I save a source file.

However, at some point in Emacs 21 (and now on 22) the compilation buffer stopped scrolling; it would show the top of the output, but then scroll out of sight. Then I would have to move the point to the end of that buffer to see the compilation activity. It was very annoying, but not annoying enough that I spent any time trying to find the settings.

But I did finally stumble across it, and here it is:

(setq compilation-scroll-output t)

One more line in my 5000 lines of emacs personalization lisp.