Home buffer: make number of recent files configurable #2335

Fixes issue #2335
This commit is contained in:
Bar Magal 2015-07-17 08:38:34 +03:00 committed by Eivind Fonn
parent f726601c02
commit 1a91e3ea14
3 changed files with 8 additions and 1 deletions

View file

@ -241,6 +241,10 @@ NOT USED FOR NOW :-)")
"List of items to show in the startup buffer. If nil it is disabled.
Possible values are: `recents' `bookmarks' `projects'.")
(defvar dotspacemacs-startup-recent-list-size 5
"Number of recent files to show in the startup buffer. Ignored if
`dotspacemacs-startup-lists' doesn't include `recents'.")
(defvar dotspacemacs-excluded-packages '()
"A list of packages and/or extensions that will not be install and loaded.")

View file

@ -522,7 +522,7 @@ HPADDING is the horizontal spacing betwee the content line and the frame border.
(cond
((eq el 'recents)
(recentf-mode)
(when (spacemacs-buffer//insert-file-list "Recent Files:" (recentf-elements 5))
(when (spacemacs-buffer//insert-file-list "Recent Files:" (recentf-elements dotspacemacs-startup-recent-list-size))
(spacemacs//insert--shortcut "r" "Recent Files:")
(insert list-separator)))
((eq el 'bookmarks)

View file

@ -75,6 +75,9 @@ values."
;; Possible values are: `recents' `bookmarks' `projects'.
;; (default '(recents projects))
dotspacemacs-startup-lists '(recents projects)
;; Number of recent files to show in the startup buffer. Ignored if
;; `dotspacemacs-startup-lists' doesn't include `recents'. (default 5)
dotspacemacs-startup-recent-list-size 5
;; List of themes, the first of the list is loaded when spacemacs starts.
;; Press <SPC> T n to cycle to the next theme in the list (works great
;; with 2 themes variants, one dark and one light)