mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Add denote--file-empty-p
This commit is contained in:
parent
813004ea53
commit
387ac0c030
|
|
@ -139,6 +139,10 @@ trailing hyphen."
|
||||||
"Make STR an appropriate file name slug."
|
"Make STR an appropriate file name slug."
|
||||||
(downcase (denote--slug-hyphenate (denote--slug-no-punct str))))
|
(downcase (denote--slug-hyphenate (denote--slug-no-punct str))))
|
||||||
|
|
||||||
|
(defun denote--file-empty-p (file)
|
||||||
|
"Return non-nil if FILE is empty."
|
||||||
|
(zerop (or (file-attribute-size (file-attributes file)) 0)))
|
||||||
|
|
||||||
;;;; Keywords
|
;;;; Keywords
|
||||||
|
|
||||||
(defun denote--directory-files ()
|
(defun denote--directory-files ()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue