Skip to content

Instantly share code, notes, and snippets.

@muihlinn
Created June 10, 2020 17:00
Show Gist options
  • Save muihlinn/520a10279b9ba620497228bdd758860a to your computer and use it in GitHub Desktop.
Save muihlinn/520a10279b9ba620497228bdd758860a to your computer and use it in GitHub Desktop.
Emacs exchange question #58958
;; Check the files you want to skip are in the list already, by default shows the entire list
(recentf-open-files)
;; Add a *valid* pattern to exclude it, let's say .el files
(add-to-list 'recentf-exclude "\\.el\\'")
;; update the recentf list with the new added rule
(recentf-cleanup)
;; Check if the el files are now excluded
(recentf-open-files)
;; test again with counsel
(counsel-recentf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment