When I press Ctrl-D in a 'term', the buffer stays open with the text "Process terminal finished".
How can I make this buffer close instead of staying open with this text displayed?
Note, this is similar to this question: How to automatically kill a shell buffer when the shell process exits however the solution there didn't work for 'term'.
emacs -Q
, runterm
(accept shell) then pressCtrl-D
to exit it. – ideasman42 May 13 '21 at 02:47(let ((proc (get-buffer-process (current-buffer)) ...)
; finding the right hook is the hardest part. Does the sentinal stuff execute from the linked question about shell-mode, or not at all? – ctietze May 13 '21 at 10:31