From f501f4d4998d6791382a3590a5423cb037c6494f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 18 Apr 2014 21:44:27 +0100 Subject: Emacs: delete-current-buffer-file: remove vc check --- tag-emacs/emacs.d/init.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tag-emacs/emacs.d/init.el') diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 5bf49ff..543e204 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -392,11 +392,9 @@ Values: `desktop', `server', `laptop'") (if (not (and filename (file-exists-p filename))) (ido-kill-buffer) (when (yes-or-no-p "Are you sure you want to remove this file? ") - (if (vc-backend filename) - (vc-delete-file filename) - (delete-file filename) - (kill-buffer buffer) - (message "File '%s' successfully removed" filename)))))) + (delete-file filename) + (kill-buffer buffer) + (message "File '%s' successfully removed" filename))))) (use-package recentf :init (progn (setq recentf-auto-cleanup 'never -- cgit 1.4.1