emacs: exclude gnus’s home dir from recentf
[~bandali/configs] / .emacs.d / init.org
index 4b2d425..5d877f8 100644 (file)
@@ -297,6 +297,14 @@ integration, we will define a =use-feature= for plain ole
      ,@args))
 #+end_src
 
      ,@args))
 #+end_src
 
+While at it, let's exclude =straight.el='s build from recentf:
+
+#+begin_src emacs-lisp
+(with-eval-after-load 'recentf
+  (add-to-list 'recentf-exclude
+               (expand-file-name "~/.emacs.d/straight/build/")))
+#+end_src
+
 Also, here's a useful function for reloading the init file (useful
 after running =straight-check-all=:
 
 Also, here's a useful function for reloading the init file (useful
 after running =straight-check-all=:
 
@@ -2492,7 +2500,10 @@ this summer.
   :config
   (require 'ebdb)
   (require 'ebdb-mua)
   :config
   (require 'ebdb)
   (require 'ebdb-mua)
-  (require 'ebdb-gnus))
+  (require 'ebdb-gnus)
+
+  (with-eval-after-load 'recentf
+    (add-to-list 'recentf-exclude gnus-home-directory)))
 
 (use-feature gnus-art
   :config
 
 (use-feature gnus-art
   :config