I have the following in my .emacs file (thanks to SOer nikwin) that evaluates the current contents of the buffer 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 occupies half the emacs screen. Is there a way to set the height of the output windows to something less. I googled for 30 minutes or so and could not find anything that worked. Thanks in advance.
source
share