From f42b686f4c8330a6b50337f91cb6b563bcda9148 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Thu, 2 Apr 2015 00:12:19 -0400 Subject: [PATCH] Fix and tweaks for startup lists --- core/core-dotspacemacs.el | 6 +++--- core/core-spacemacs.el | 3 ++- core/templates/.spacemacs.template | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/core/core-dotspacemacs.el b/core/core-dotspacemacs.el index aeab2923a..3f4e24557 100644 --- a/core/core-dotspacemacs.el +++ b/core/core-dotspacemacs.el @@ -130,9 +130,9 @@ declared in a layer which is not a member of specified with an installed package. NOT USED FOR NOW :-)") -(defvar dotspacemacs-startup-lists '() - "Which file lists to show in the startup buffer. '() for none. -Options are: 'recent 'bookmarks 'projects.") +(defvar dotspacemacs-startup-lists '(recents projects) + "List of items to show in the startup buffer. If nil it is disabled. +Possible values are: `recents' `bookmarks' `projects'.") (defvar dotspacemacs-excluded-packages '() "A list of packages and/or extensions that will not be install and loaded.") diff --git a/core/core-spacemacs.el b/core/core-spacemacs.el index 3994f3397..af76aab56 100644 --- a/core/core-spacemacs.el +++ b/core/core-spacemacs.el @@ -332,7 +332,8 @@ version and the NEW version." ;; Ultimate configuration decisions are given to the user who can defined ;; them in his/her ~/.spacemacs file (dotspacemacs|call-func dotspacemacs/config "Calling dotfile config...") - (when 'dotspacemacs-startup-lists + ;; Display useful lists of items + (when dotspacemacs-startup-lists (spacemacs/insert-startupify-lists)) ;; from jwiegley ;; https://github.com/jwiegley/dot-emacs/blob/master/init.el diff --git a/core/templates/.spacemacs.template b/core/templates/.spacemacs.template index d5ff3b7e2..03bc39cd0 100644 --- a/core/templates/.spacemacs.template +++ b/core/templates/.spacemacs.template @@ -35,6 +35,9 @@ before layers configuration." ;; If the value is nil then no banner is displayed. ;; dotspacemacs-startup-banner 'official dotspacemacs-startup-banner 'official + ;; List of items to show in the startup buffer. If nil it is disabled. + ;; Possible values are: `recents' `bookmarks' `projects'." + dotspacemacs-startup-lists '(recents projects) ;; List of themes, the first of the list is loaded when spacemacs starts. ;; Press T n to cycle to the next theme in the list (works great ;; with 2 themes variants, one dark and one light) @@ -108,9 +111,6 @@ before layers configuration." ;; specified with an installed package. ;; Not used for now. dotspacemacs-default-package-repository nil - ;; If one or more of ('recents 'projects 'bookmarks), shows lists of those - ;; files at startup in that order. - dotspacemacs-startup-lists '(recents projects) ) ;; User initialization goes here )