Skip to content

Instantly share code, notes, and snippets.

View whjiang's full-sized avatar

Weihua Jiang whjiang

View GitHub Profile
(defun vulpea-project-p ()
"Return non-nil if current buffer has any todo entry.
TODO entries marked as done are ignored, meaning the this
function returns nil if current buffer contains only completed
tasks."
(seq-find ; (3)
(lambda (type)
(eq type 'todo))
(org-element-map ; (2)