How can I prevent the * tex-shell * buffer from opening when compiling Latex from Emacs? It breaks the window in half, and I always use Cx 1 to get rid of it immediately.
The solution may be related to
(setq special-display-buffer-names ("*tex-shell*"))
which forces the new buffer to process the entire frame instead of half (not what I want).
I tried the following, but this does not affect latex:
(defadvice compilation-start
(around inhidbit-display (command &optional mode name-function highlight-regexp))
(flet (display-buffer) (fset 'display-buffer 'ignore) ad-do-it))
(ad-activate 'compilation-start)
(ad-deactivate 'compilation-start)
source
share