Commit 65c24e348ed5

Vincent Demeester <vincent@sbr.pm>
2025-04-29 00:34:32
tools/emacs: filter org files from readwise…
… from org-agenda. it will reduce the size at least. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent b5f92f7
Changed files (1)
tools
emacs
tools/emacs/config/config-org.el
@@ -158,7 +158,8 @@
   (when (file-exists-p org-babel-library-file)
     (org-babel-lob-ingest org-babel-library-file))
   (defun vde/org-agenda-files ()
-    (seq-filter (lambda(x) (not (string-match "/archive/"(file-name-directory x))))
+    (seq-filter (lambda(x) (and (not (string-match "/archive/" (file-name-directory x)))
+				(not (string-match ".*==readwise=.*" x))))
 		(apply 'append
 		       (mapcar
 			(lambda (directory)