How to remove the prompt for killing emacsclient buffers?

后端 未结 4 749
借酒劲吻你
借酒劲吻你 2021-02-01 17:53

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)
         


        
4条回答
  •  粉色の甜心
    2021-02-01 18:33

    This worked for me:

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

    There's more information on Using Emacsclient blog entry.

提交回复
热议问题