kill the associated buffer when close the emacs-client frame by pressing Alt+F4 -


But I am very upset that when I saw some files and lots of buffers were alive, then they stopped by pressing Alt + F4. I have to kill the buffer clearly before closing the frame.

I want to know, if an epistolent is a way to behave like a light GUI editor (like vim) at this point?

I think that you are asking for trouble, but you can try it: / P>

  (add-hook 'delete-frame-functions (lambda (frame) (let * (window (frame-selected-window frame)) (buffer (and window (window-buffer window) )) (When (and buffer (buffer-file-name buffer)) (kill-buffer buffer))))  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -