Skip to content
Snippets Groups Projects
Commit 55123180 authored by Liu Miao's avatar Liu Miao
Browse files

fix recentf bug

parent c82a8615
No related merge requests found
File added
...@@ -86,21 +86,22 @@ ...@@ -86,21 +86,22 @@
show-paren-highlight-openparen t show-paren-highlight-openparen t
show-paren-when-point-inside-paren t show-paren-when-point-inside-paren t
show-paren-when-point-in-periphery t)) show-paren-when-point-in-periphery t))
(use-package recentf
:defer 1 (use-package recentf
:commands (recentf-save-list) :defer 1
:init :commands (recentf-save-list)
(progn :init
(add-hook 'find-file-hook (lambda () (unless recentf-mode (progn
(recentf-mode) (add-hook 'find-file-hook (lambda () (unless recentf-mode
(recentf-track-opened-file)))) (recentf-mode)
(setq recentf-save-file user/recentf-save-file (recentf-track-opened-file))))
recentf-max-saved-items 1000 (setq recentf-save-file user/recentf-save-file
recentf-auto-cleanup 'never recentf-max-saved-items 1000
recentf-auto-save-timer (run-with-idle-timer 600 t recentf-auto-cleanup 'never
'recentf-save-list))) recentf-auto-save-timer (run-with-idle-timer 600 t
'recentf-save-list)))
:bind :bind
(("C-c f r" . recentf)) (("C-c f r" . recentf-open-files))
) )
(use-package display-line-numbers (use-package display-line-numbers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment