Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I encourage emacs to follow the compilation buffer

Tags:

emacs

Occasionally when I'm compiling, I have to scroll up my compilation buffer to see the details of an error. At this point, emacs stops "following" my compilation buffer, i.e., scrolling to automatically display new output.

I'm using Aqumacs on OS X. Any idea how I can "reattach" or re encourage the compilation buffer to follow again?

Regards, Chris

like image 887
clearf Avatar asked Jan 11 '11 11:01

clearf


People also ask

How do I run a buffer in Emacs?

If you want to display one of the buffers in place of the buffer list, you can press f. To put a buffer in another window (i.e., one not occupied by the buffer list), type o. Emacs displays the buffer in the other window and puts the cursor there.

How do I run a compiled program in Emacs?

Compile your program. Pull down the Compile menu in Emacs and select Compile This File (Or, equivalently, try M-x, i.e., Esc-x, followed by compile). The compilation command will appear at the bottom of the window. Press the Enter key to start the compilation.


1 Answers

Put in your ~/.emacs file

  ;; Compilation output   (setq compilation-scroll-output t) 

or even

  (setq compilation-scroll-output 'first-error) 

to make it scroll to the first error.

like image 156
tsohr Avatar answered Sep 30 '22 21:09

tsohr