Function: denote-org-capture-delete-empty-file

denote-org-capture-delete-empty-file is a byte-compiled function defined in denote.el.

Signature

(denote-org-capture-delete-empty-file)

Documentation

Delete file if capture with denote-org-capture is aborted.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-org-capture-delete-empty-file ()
  "Delete file if capture with `denote-org-capture' is aborted."
  (when-let* ((file denote-last-path)
              ((denote--file-empty-p file)))
    (delete-file denote-last-path)))