I was bothered by the remaining buffer after terminating a shell, for instance using C-d or exit, that I always have to kill manually.
Which made me look for a configuration variable, that didn't exist. Which made me look for a hook, that didn't exist. I tried to do it in a process-sentinel, but you can only attach one per process and shell-pop already adds its own.
So here it is, a configuration variable to cleanup the buffer after the shell process exits AND a hook because if I was looking for one, chances are that other people as well for some other purpose.
Hey there !
I was bothered by the remaining buffer after terminating a shell, for instance using
C-d
orexit
, that I always have to kill manually.Which made me look for a configuration variable, that didn't exist. Which made me look for a hook, that didn't exist. I tried to do it in a
process-sentinel
, but you can only attach one per process andshell-pop
already adds its own.So here it is, a configuration variable to cleanup the buffer after the shell process exits AND a hook because if I was looking for one, chances are that other people as well for some other purpose.