1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

Stephen Berman <Stephen.Berman at gmx.net>:

(recentf-save-file): Add a custom :set function.
This commit is contained in:
Glenn Morris 2007-03-28 03:26:26 +00:00
parent af49347bdf
commit a0314231fa

View file

@ -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.