Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the prompt for killing emacsclient buffers?

Tags:

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?

like image 442
pupeno Avatar asked Nov 06 '08 09:11

pupeno


2 Answers

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 
like image 99
Dave Webb Avatar answered Oct 11 '22 13:10

Dave Webb


This worked for me:

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

There's more information on Using Emacsclient blog entry.

like image 20
Touko Avatar answered Oct 11 '22 14:10

Touko