After I open something with emacsclient, when I kill that buffer (C-x k) I get a confirmation dialog:
Buffer `blah' still has clients; kill it? (yes or no)
But when I kill buffers opened directly from Emacs I don't. Is there a way not to get them when emacsclient opened them?
The other option is to use the -n
option with emacsclient
so that it doesn't wait for the file to be edited before exiting.
For example:
emacsclient -n myfile.txt
This worked for me:
(remove-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function)
There's more information on Using Emacsclient blog entry.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With