I'm browsing with erc
to some channels which are mainly used by bot request. Therefore the buffer size will scale up very fast. Since It's a read-only buffer I cannot empty it by hand. Is there a way to tell Emacs to empty a buffer if it reaches a specific size?
Asked
Active
Viewed 156 times
4
-
Have a look at my configuration for clearing eshell. Not sure how to clear if it reaches a specific size but it might be a start link – Sparx Oct 09 '16 at 11:13
-
In what way is the buffer read only? Perhaps you can simply turn the read only flag off by using C-x C-q? – Mathias Dahl Oct 09 '16 at 15:18
-
Doesn't work - already tried – xetra11 Oct 09 '16 at 16:18
1 Answers
3
I just found erc-truncate-mode
. You have to change this variable
erc-max-buffer-size
Maximum size in chars of each ERC buffer. Used only when auto-truncation is enabled.

bertfred
- 1,729
- 1
- 12
- 24