How to remove the prompt for killing emacsclient buffers?

后端 未结 4 757
借酒劲吻你
借酒劲吻你 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:23

    For whatever reason, I have to manually launch the remove-hook solution on emacs23, perhaps because certain parts of the server are loaded after the .emacs is loaded. Adding a dummy (server-start) line to my .emacs before the (remove-hook ...) did not help. So I have opted for the following, less principled solution:

    (defalias 'server-kill-buffer-query-function '(lambda () t))
    

提交回复
热议问题