diff options
author | Alan Pearce | 2014-04-18 21:44:27 +0100 |
---|---|---|
committer | Alan Pearce | 2014-04-18 21:44:27 +0100 |
commit | f501f4d4998d6791382a3590a5423cb037c6494f (patch) | |
tree | 4ffddbccd612deab7812026907677b8f2ec9d477 /tag-emacs | |
parent | 13785c1eb7c0b85f171e6eb89b6b7bb4f47c6ade (diff) | |
download | dotfiles-f501f4d4998d6791382a3590a5423cb037c6494f.tar.lz dotfiles-f501f4d4998d6791382a3590a5423cb037c6494f.tar.zst dotfiles-f501f4d4998d6791382a3590a5423cb037c6494f.zip |
Emacs: delete-current-buffer-file: remove vc check
Diffstat (limited to 'tag-emacs')
-rw-r--r-- | tag-emacs/emacs.d/init.el | 8 |
1 files changed, 3 insertions, 5 deletions
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 |