Stop opening tex-shell when compiling Latex from Emacs

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)
+6
source share
2 answers

, AUCTeX, . , C-h k Emacs , . , C-c C-f, tex-file tex-file, , ( tex-start-shell ) tex-start-shell.

+1

defun:

(defun tex-without-changing-windows ()
  (interactive)
  (save-buffer)
  (save-window-excursion (tex-file)))

C-c C-f tex-file.

0

All Articles