Skip to content

Commit

Permalink
fix(recentf): more explicit exclusion regexps
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 10, 2023
1 parent fcdf95e commit 79e93fd
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -944,18 +944,8 @@
(recentf-case-fold-search t)
;; Exclude some files from being remembered by recentf
(recentf-exclude
`(,(rx (* any)
(or
"elfeed-db"
"eln-cache"
"/cache/"
".maildir/"
".cache/")
(* any)
(? (or "html" "pdf" "tex" "epub")))
,(rx "/"
(or "rsync" "ssh" "tmp" "yadm" "sudoedit" "sudo")
(* any))))
`(,(rx (or "/elfeed-db/" "/eln-cache/" "/cache/" "/.maildir/" "/.cache/"))
,(rx bol "/" (or "tmp/" "rsync:" "ssh:" "sudoedit:" "sudo:"))))
:config
;; Enable `recentf-mode' to remember recent files
(+shutup! (recentf-mode 1)))
Expand Down

0 comments on commit 79e93fd

Please sign in to comment.