Make node heading formatter a custom var

This commit is contained in:
Chris Barrett
2023-03-12 15:09:52 +13:00
parent cccb4af688
commit 8c438886d8
3 changed files with 15 additions and 11 deletions

View File

@@ -110,12 +110,7 @@ When called interactively, prompt the user for MAX-DEPTH."
(if (equal id start-node-id)
(magit-cancel-section)
(let* ((seen-p (gethash id seen-ids))
(face
(cond
((zerop depth) 'magit-section-heading)
(seen-p 'font-lock-comment-face)
(t 'org-roam-title)))
(heading (propertize (org-roam-node-title node) 'font-lock-face face)))
(heading (funcall org-roam-review-title-formatter node)))
(magit-insert-heading (org-roam-review-indent-string heading depth))
(unless seen-p
(puthash id t seen-ids)