summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-05-20 22:59:29 -0400
committerKyle Meyer <kyle@kyleam.com>2016-05-20 22:59:29 -0400
commit1cbd0e64b07c103bb2d7ec18a7bb683d96933e9a (patch)
treef0e87388f66ca68072b776cdb4545f2fa8e632ee
parentd0b584140966aa2a5bb1d1a58ad5691ae2774a85 (diff)
downloademacs.d-1cbd0e64b07c103bb2d7ec18a7bb683d96933e9a.tar.gz
Fix up recentf-exclude regexp
-rw-r--r--init.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/init.el b/init.el
index 817021b..af9f772 100644
--- a/init.el
+++ b/init.el
@@ -589,7 +589,11 @@
:config
(setq recentf-max-saved-items 50
recentf-save-file "~/.emacs.d/cache/recentf")
- (add-to-list 'recentf-exclude "^/tmp/scratch.*")
+ (add-to-list 'recentf-exclude
+ (rx string-start
+ "/tmp/scratch"
+ (or string-end
+ (and "." (one-or-more not-newline)))))
(recentf-mode))
(use-package nlines