Skip to content

Instantly share code, notes, and snippets.

@karlicoss
Created September 29, 2019 10:28
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlicoss/b2f9c7730ec2d2dd59c3703a2058a61b to your computer and use it in GitHub Desktop.
Save karlicoss/b2f9c7730ec2d2dd59c3703a2058a61b to your computer and use it in GitHub Desktop.
Snipped for org-mode agenda to show presence of notes
(with-eval-after-load 'org-agenda
(defun my/org-has-children ()
(if (save-excursion (org-goto-first-child)) "" " ")
)
(add-to-list 'org-agenda-prefix-format '(
agenda . "%i%-3:(my/org-has-children) %-12:c%?-12t% s "
))
)
; Result:
; ▶ apt: D TODO [#A] pay council tax :bills:
; ▶ backup: D TODO [#C] Bookmark Archiver https://pirate.github.io/bookmark-archiver :backup:
; social: D TODO [#B] check meetups :social::
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment