从Emacs编译Latex时停止打开tex-shell

zoo*_*zoo 6 emacs latex elisp dot-emacs

当我从Emacs编译Latex时,如何防止打开*tex-shell*缓冲区?它将窗口分成两半,我总是只使用Cx 1来立即摆脱它.

解决方案可能与

(setq special-display-buffer-names ("*tex-shell*"))
Run Code Online (Sandbox Code Playgroud)

这使得新缓冲区占据整个帧而不是一半(不是我想要的).

我尝试了以下内容,但它对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)
Run Code Online (Sandbox Code Playgroud)

Iva*_*rus 2

嗯,您确实应该使用 AUCTeX,因为它要好得多。然而,如果您输入C-hk一个按键序列,Emacs 会告诉您将运行什么。在这种情况下,对于C-cC-ftex-file因此您必须建议tex-file,或者也许(稍微深入研究一下源代码)tex-start-shell