From 8dc3c9c636e938ad231cf260e17ba038ebc90921 Mon Sep 17 00:00:00 2001 From: Random936 Date: Fri, 10 Nov 2023 20:37:49 -0800 Subject: [PATCH] Fixed issue with duplicate values in org-agenda-files variable --- .emacs.d/config.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index dc01c07..39dd218 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -578,7 +578,10 @@ Creates a function to refresh the ~org-agenda-files~ variable to be set to inclu #+begin_src emacs-lisp (defun jm/org-roam-refresh-agenda-list () (interactive) - (setq org-agenda-files (mapcar #'org-roam-node-file (org-roam-node-list)))) + (setq org-agenda-files + (seq-uniq (mapcar + #'org-roam-node-file + (org-roam-node-list))))) #+end_src *** Custom States