Skip to content

Commit

Permalink
tweak(recentf): better exclusion of remote files
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 8, 2024
1 parent aca7981 commit f6f1a10
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -1334,13 +1334,14 @@ current line.")
:custom
(recentf-save-file (concat minemacs-local-dir "recentf-save.el"))
;; Increase the maximum number of saved items
(recentf-max-saved-items 100)
(recentf-max-saved-items 200)
;; Ignore case when searching recentf files
(recentf-case-fold-search t)
;; Exclude some files from being remembered by recentf
(recentf-exclude
`(,(rx (or "/elfeed-db/" "/eln-cache/" "/cache/" "/.maildir/" "/.cache/"))
,(rx bol "/" (or "tmp/" "rsync:" "ssh:" "sudoedit:" "sudo:"))))
`(file-remote-p
,(rx (or "/elfeed-db/" "/eln-cache/" "/cache/" "/.maildir/" "/.cache/"))
,(rx bol "/tmp/")))
:init
;; Enable `recentf-mode' to remember recent files
(+shutup! (recentf-mode 1)))
Expand Down

0 comments on commit f6f1a10

Please sign in to comment.