Inspired by emacs org-mode.