I want to limit the length of the *inferior-ensime-server-...*
buffer to a few thousand lines.
This looks promising, from https://stackoverflow.com/a/11255400/1007926, but does not work in this case:
(add-hook 'compilation-filter-hook 'comint-truncate-buffer)
(setq comint-buffer-maximum-size 2000)
Is there an ENSIME server buffer hook that I can use in place of 'compilation-filter-hook
?
Maybe these hooks can be used to truncate the buffer occasionally: https://github.com/ensime/ensime-emacs/blob/master/ensime-mode.el
It worked for me, I did a
M-x customize-group ensime-server
and then, inensime-server-logback
I had to set the path to thelogback.xml
as a string:"/home/user/.sbt/0.13/plugins/logback.xml"
. This is my logback: