Emacs shell output buffer height
Posted
by jimbo
on Stack Overflow
See other posts from Stack Overflow
or by jimbo
Published on 2010-05-01T04:26:29Z
Indexed on
2010/05/01
4:37 UTC
Read the original article
Hit count: 365
Hi ,
i have the following in my .emacs file(thanks to a SOer nikwin), which evaluates the current buffer content and displays the output in another buffer.
(defun shell-compile ()
(interactive)
(save-buffer)
(shell-command (concat "python " (buffer-file-name))))
(add-hook 'python-mode-hook
(lambda () (local-set-key (kbd "\C-c\C-c") 'shell-compile)))
The problem is that the output window takes half the emacs screen. Is there any way to set the output windows's height to something smaller. I googled for 30mins or so and could not find anything that worked. Thanks in advance.
© Stack Overflow or respective owner