dump: require recentf and eldoc when dumping

This commit is contained in:
syl20bnr 2018-03-31 01:10:20 -04:00
parent b44506fa74
commit ed9123984a

View file

@ -123,7 +123,8 @@
(defun spacemacs-defaults/init-eldoc ()
(use-package eldoc
:defer t
:defer (spacemacs/defer)
:init (spacemacs|require 'eldoc)
:config
(progn
;; enable eldoc in `eval-expression'
@ -217,13 +218,14 @@
(defun spacemacs-defaults/init-recentf ()
(use-package recentf
:defer t
:defer (spacemacs/defer)
:init
(progn
;; lazy load recentf
(add-hook 'find-file-hook (lambda () (unless recentf-mode
(recentf-mode)
(recentf-track-opened-file))))
(spacemacs|require 'recentf)
(when (spacemacs/defer)
(add-hook 'find-file-hook (lambda () (unless recentf-mode
(recentf-mode)
(recentf-track-opened-file)))))
(setq recentf-save-file (concat spacemacs-cache-directory "recentf")
recentf-max-saved-items 1000
recentf-auto-cleanup 'never