Org Roam

Org Roam is an implementation of Zettelkasten built using Org Mode in Emacs . My Org Roam setup is documented in myzettel . Org-roam-ui provides a nice graphical web interface to org-roam.

I found about org roam after reading the book Getting Things Done by David Allen.

ox-hugo is used to auto-export org mode files to md format. These md files are being served by hugo .

Force rebuild roam-db

A regular org-roam-db-sync only processes changed files. It won’t remove already-tracked nodes. To Force a full rebuild, the database needs to be deleted first, before syncing again:

M-x org-roam-db-clear-all
M-x org-roam-db-sync

Alternately, deleting the database file will automatically trigger a rebuild on restarting emacs, or issue the sync command.

rm ~/.config/emacs/org-roam.db

Journaling in org-roam

To prevent existing journaling entries from appearing in the list of nodes, the following function needs to be defined.

(setq org-roam-db-node-include-function
      (lambda () (= (org-outline-level) 0)))

To prevent future ID creation, the option “no-id t” has been added to the dailies capturing template.

This post↗ explains how to open org-roam-dailies in other-window.

(defun ugt-org-roam-dailies-goto-today nil
  "Open todays journal in other window."
  (interactive)
  (split-window-right)
  (other-window 1)
  (org-roam-dailies-goto-today))

Sources:


© Prabu Anand K 2020-2026