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?

  • 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 9 '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 9 '16 at 15:18
  • Doesn't work - already tried – xetra11 Oct 9 '16 at 16:18

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.