Skip to content

Commit

Permalink
Respect delete-by-moving-to-trash
Browse files Browse the repository at this point in the history
  • Loading branch information
toctan committed Sep 3, 2015
1 parent bcdc411 commit e28d038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/prelude-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ there's a region, all lines that region covers will be duplicated."
(if (vc-backend filename)
(vc-delete-file filename)
(when (y-or-n-p (format "Are you sure you want to delete %s? " filename))
(delete-file filename)
(delete-file filename delete-by-moving-to-trash)
(message "Deleted file %s" filename)
(kill-buffer))))))

Expand Down

0 comments on commit e28d038

Please sign in to comment.