Jens Persson <jens.persson.1833@student.uu.se> writes:
The ouput of these shell-command calls goes into the *Shell Command
Output* buffer, and now I only want it to automatically scroll down
every time new output arrives to it so that the last lines of the
output is visable, how can i do this? Is there some hook that i can
add a "end-of-buffer" to or something?
Why not run them under `compile', which will do the scrolling for you
automatically.
e.g.
(defun csound-compile-curr-osc-sco ()
(interactive)
(compile (concat "csound -A -d -o test.aif "
(file-name-sans-extension (buffer-name)) ".orc "
(file-name-sans-extension (buffer-name)) ".sco")))
(global-set-key [f8] 'csound-compile-curr-osc-sco)