* shell-command: how to limit output buffer's height?
@ 2008-10-08 7:10 Stefan Vollmar
2008-10-09 2:42 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Vollmar @ 2008-10-08 7:10 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I am using shell-command to run an external program. The output is
display in a buffer "*Async Shell Command*" and I would like to limit
that buffer's window height to just a few lines. Is there something
similar to compilation-window-height for the shell-command?
Many thanks in advance,
Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213 FAX +49-221-4726-298
Tel.: +49-221-478-5713 Mobile: 0160-93874279
Email: vollmar@nf.mpg.de http://www.nf.mpg.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: shell-command: how to limit output buffer's height?
2008-10-08 7:10 shell-command: how to limit output buffer's height? Stefan Vollmar
@ 2008-10-09 2:42 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2008-10-09 2:42 UTC (permalink / raw)
To: help-gnu-emacs
Stefan Vollmar wrote:
> I am using shell-command to run an external program. The output is
> display in a buffer "*Async Shell Command*" and I would like to limit
> that buffer's window height to just a few lines. Is there something
> similar to compilation-window-height for the shell-command?
I use separate frames for that purpose, which may or may not meet your
needs:
(setq special-display-buffer-names
(cons "*Async Shell Command*" special-display-buffer-names))
The default height for such frames is 14 lines, but you can change it:
(setq special-display-frame-alist
(cons '(height . 5) special-display-frame-alist))
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-09 2:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08 7:10 shell-command: how to limit output buffer's height? Stefan Vollmar
2008-10-09 2:42 ` Kevin Rodgers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).