mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-21 13:53:38 -05:00
Remove prompt if file is opened in other emacsclients
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user