我做了一个函数,运行 pdflatex 编译器为当前编辑的 tex 文件生成一个 pdf 文件:
(defun latex-compile ()
"Runs pdflatex on current file"
(interactive)
(let ((file-name (shell-quote-argument (buffer-file-name))))
(async-shell-command (concat "pdflatex " file-name))))
*Async Shell Command*
如果成功退出,是否可以在进程退出后关闭窗口?