diff options
author | Glenn Morris <rgm@gnu.org> | 2007-03-28 03:26:26 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-03-28 03:26:26 +0000 |
commit | a0314231fae52fea7b976bb9bf82dcf2b2eec89f (patch) | |
tree | 7aa0b7a2faa67bede4ad90187c5f1061ccfc9b47 /lisp/recentf.el | |
parent | af49347bdf10794e666c1e402ed1418b2922ecaf (diff) | |
download | emacs-a0314231fae52fea7b976bb9bf82dcf2b2eec89f.tar.gz |
Stephen Berman <Stephen.Berman at gmx.net>:
(recentf-save-file): Add a custom :set function.
Diffstat (limited to 'lisp/recentf.el')
-rw-r--r-- | lisp/recentf.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/recentf.el b/lisp/recentf.el index 12e4dd7ec57..c55f15c69e9 100644 --- a/lisp/recentf.el +++ b/lisp/recentf.el @@ -72,7 +72,14 @@ See the command `recentf-save-list'." (defcustom recentf-save-file "~/.recentf" "*File to save the recent list into." :group 'recentf - :type 'file) + :type 'file + :initialize 'custom-initialize-default + :set (lambda (symbol value) + (let ((oldvalue (eval symbol))) + (custom-set-default symbol value) + (and (not (equal value oldvalue)) + recentf-mode + (recentf-load-list))))) (defcustom recentf-save-file-modes 384 ;; 0600 "Mode bits of recentf save file, as an integer, or nil. |