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:
parent
af49347bdf
commit
a0314231fa
1 changed files with 8 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue