From 7ab60e1919779eac999a00e3587eca010a4f884e Mon Sep 17 00:00:00 2001 From: Ambrevar Date: Mon, 7 Jan 2013 20:38:51 +0100 Subject: [PATCH] Emacs: set to scroll output for TeX compilation. --- .emacs.d/modes.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.emacs.d/modes.el b/.emacs.d/modes.el index 50ef89e4..f80ee5bc 100644 --- a/.emacs.d/modes.el +++ b/.emacs.d/modes.el @@ -200,7 +200,12 @@ variable, e.g. on the first line: (setq tex-my-compile-command (concat tex-my-compiler " " tex-my-shell-escape " " tex-my-compiler-options " " tex-my-startcommands " " buffer-file-name)) ;; (message tex-my-compile-command) ;; Debug only. (save-buffer) + (setq compilation-scroll-output t) (compile tex-my-compile-command) + + ;; If no user interaction for 2 seconds, hide the compilation window. + (sit-for 2) + (delete-windows-on "*compilation*") ) ;; TODO: rewrite this function using lists and/or macros.