aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-04-26 15:31:23 -0700
committerGravatar Tom Willemse2020-04-26 15:31:23 -0700
commit18807d5461cbd62f1562b160585b510e576e82c4 (patch)
treea98e76cc0e639e10cbe543175919bc47e05562da
parent45912e58b97a686cd7b42aaf0ae8361e2d5905c4 (diff)
downloademacs-config-18807d5461cbd62f1562b160585b510e576e82c4.tar.gz
emacs-config-18807d5461cbd62f1562b160585b510e576e82c4.zip
Silence ‘recentf-save-list’
‘recentf-save-list’ sends a message that it’s saving the recentf list, but seeing that after every time I don’t do something for 10 seconds in Emacs gets a little annoying.
-rw-r--r--oni-core.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/oni-core.el b/oni-core.el
index 212d126..86b4b0b 100644
--- a/oni-core.el
+++ b/oni-core.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2020.0407.212814
+;; Version: 2020.0426.153115
;; Package-Requires: (oni-data-dir expand-region multiple-cursors embrace helpful)
;; This program is free software; you can redistribute it and/or modify
@@ -149,7 +149,12 @@
(unless oni-core--recentf-idle-timer
(setq oni-core--recentf-idle-timer
- (run-with-idle-timer 10 t 'recentf-save-list)))
+ (run-with-idle-timer
+ 10
+ t
+ (lambda ()
+ (let ((inhibit-message t))
+ (recentf-save-list))))))
(electric-indent-mode -1)
(winner-mode)