kyagi / shell-pop-el

shell-pop.el helps you to use shell easily on Emacs. Only one key action to work.
212 stars 21 forks source link

Process exit hook and buffer cleanup #58

Closed deb0ch closed 4 years ago

deb0ch commented 6 years ago

Hey there !

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.

jconway4 commented 5 years ago

+1

deb0ch commented 5 years ago

Ping ?

cornfeedhobo commented 5 years ago

@kyagi Could this PR get some attention?

syohex commented 4 years ago

I applied your commit. Thanks for PR