refactor(org): org-roam-node-doom-subdirs

Didn't need to be so convoluted.
This commit is contained in:
Henrik Lissner 2022-02-11 01:55:44 +01:00
parent 9217bb81f4
commit 4c3be5e379

View file

@ -44,16 +44,13 @@ If there's none, return an empty string."
;;;###autoload (autoload 'org-roam-node-doom-tags "lang/org/autoload/contrib-roam2" nil t)
(cl-defmethod org-roam-node-doom-tags ((node org-roam-node))
"Return tags formatted in the same way how they appear in org files."
(when-let* ((tags (org-roam-node-tags node))
(tags (cl-remove-if
(doom-rpartial
(cl-remove-if (doom-rpartial
#'member (delq
nil (append
(list (bound-and-true-p org-archive-tag)
(bound-and-true-p org-attach-auto-tag))
(bound-and-true-p org-num-skip-tags))))
tags)))
tags))
(org-roam-node-tags node)))
;;;###autoload (autoload 'org-roam-node-doom-type "lang/org/autoload/contrib-roam2" nil t)
(cl-defmethod org-roam-node-doom-type ((node org-roam-node))