Search code examples
emacsemacsclient

How to remove the prompt for killing emacsclient buffers?


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?


Solution

  • This worked for me:

    (remove-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function)
    

    There's more information on Using Emacsclient blog entry.