sachac's Blog

sachac's Avatar Image
Interests include: #Emacs, #OrgMode, #elisp, #nodejs, #python, #sketchnotes, #parenting, #cooking, #gardening, #knitting, #sewing, #lego, #captioning, #plover #steno, and #stoic philosophy. Originally from Manila, now in Toronto. Married to a Vim guy (go figure) and raising a 7-year old (editor preference unknown), along with two very loud cats.

Blog: https://sachachua.com (mostly Emacs News these days), sketches: https://sketches.sachachua.com. I also maintain planet.emacslife.com and subed.el
← All posts

I like to have new Org entries added to the start of the subtree for easier review, but org-feed appends them. Since I didn’t feel like hacking a prepend option into org-feed at the moment, I used advice to sort them afterwards instead.

	(defun my-org-feed-sort (pos entries)
		(save-excursion
			(goto-char pos)
			(when (looking-at org-complex-heading-regexp)
				(org-sort-entries nil ?T))))
	(advice-add #'org-feed-add-items :after #'my-org-feed-sort)

Link: https://sachachua.com/dotemacs/#mastodon-org-feed

To like or reply, open original post on Emacs.ch