From 35c45088e7ab80d947222bd5f52718b33f0c20d0 Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Tue, 1 Aug 2017 19:05:22 +0200 Subject: [PATCH] Limit size of compilation buffers --- init.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init.org b/init.org index d0e68e5..e1d988d 100644 --- a/init.org +++ b/init.org @@ -944,6 +944,17 @@ #+END_SRC * Mode specific +** Compilation + + I often run ~latexmk -pdf -pvc~ in a compilation buffer, which recompiles + the latex-file whenever it is changed. This often results in annoyingly + large compilation buffers; the following snippet limits the buffer size in + accordance with ~comint-buffer-maximum-size~, which defaults to 1024 lines. + + #+BEGIN_SRC emacs-lisp + (add-hook 'compilation-filter-hook 'comint-truncate-buffer) + #+END_SRC + ** Shell I use =shell= whenever i want to use access the command line in Emacs. I