Browse Source

* hosts/blueberry/init.el: Fix org-roam setup.

master
Nicolas Petton 10 months ago
parent
commit
946c447a4f
No known key found for this signature in database GPG Key ID: E8BCD7866AFCF978
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      hosts/blueberry/init.el

+ 6
- 4
hosts/blueberry/init.el View File

@ -254,12 +254,14 @@ tasks."
(prop-tags (org-roam--extract-tags-prop file))
(tags prop-tags))
(if (nico-org-project-p)
(setq tags (cons "Project" tags))
(setq tags (remove "Project" tags)))
(unless (eq prop-tags tags)
(unless (seq-contains-p tags "Project")
(setq tags (cons "Project" tags)))
(when (seq-contains-p tags "Project")
(setq tags (remove "Project" tags))))
(unless (equal prop-tags tags)
(org-roam--set-global-prop
"ROAM_TAGS"
(combine-and-quote-strings (seq-uniq tags)))))))
(combine-and-quote-strings tags))))))
(defun nico-org-roam-buffer-p ()
"Return non-nil if the currently visited buffer is a note."


Loading…
Cancel
Save