all repos — nixfiles @ 7f00ccbe79f5f65aea593fc2aa491e14a3fa40cd

System and user configuration, managed by nix and home-manager

emacs: Use crux function to delete buffer and file

Alan Pearce
commit

7f00ccbe79f5f65aea593fc2aa491e14a3fa40cd

parent

c72a3037fe988db5af5174535baf30e9b7ac395e

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -724,7 +724,7 @@ (defun kill-or-delete-this-buffer-dwim (&optional arg)
"Kill current buffer. With prefix ARG, delete it." (interactive "P") (if (equal arg '(4)) - (delete-current-buffer-file) + (crux-delete-file-and-buffer) (if server-buffer-clients (server-edit) (let ((buf (buffer-name)))