mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Limit size of compilation buffers
This commit is contained in:
parent
db8a3ce73a
commit
35c45088e7
11
init.org
11
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
|
||||
|
Loading…
Reference in New Issue
Block a user