Remove prompt if file is opened in other emacsclients

This commit is contained in:
Henrik Lissner 2018-02-01 19:49:37 -05:00
parent 805f7e7175
commit 005402efc0
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -309,6 +309,11 @@ DEFAULT is non-nil, set the default mode-line for all buffers."
window-divider-default-right-width 1)
(add-hook 'doom-init-ui-hook #'window-divider-mode)
;; remove prompt if the file is opened in other clients
(defun server-remove-kill-buffer-hook ()
(remove-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function))
(add-hook 'server-visit-hook 'server-remove-kill-buffer-hook)
;;
;; Line numbers