doom:file-delete: remove org attachment check (to be done elsewhere later)

This commit is contained in:
Henrik Lissner 2016-06-23 01:31:22 -04:00
parent 64c51764a1
commit 12c3c98a74

View file

@ -9,12 +9,6 @@
(if (not (file-exists-p filename))
(error "File doesn't exist: %s" filename)
(when (or bang (and (not bang) (y-or-n-p (format "Delete %s?" (f-base filename)))))
;; Delete attachments if in org-mode
(when (eq major-mode 'org-mode)
(mapc (lambda (file)
(when (file-exists-p file)
(delete-file file t)))
(doom/org-attachments)))
(set-buffer-modified-p nil)
(delete-file filename)
(kill-this-buffer)