Move cate to 998 index and add support for `cate' value

Also removes some empty lines in the banner.
This commit is contained in:
syl20bnr 2016-05-26 20:18:48 -04:00
parent 77cb2237a5
commit 7945d39208
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,4 @@
▄▄▄▄ ▄
▌▄ █▄ ▄▀▄▀▄
▌███ ▌ ▄▄▄▄▄▄ ▐ ███ ▌

View File

@ -78,6 +78,7 @@ in spacemacs buffer along with quick buttons underneath.
Easter egg:
Doge special text banner can be reachable via `999', `doge' or `random*'.
Cate special text banner can de reachable via `998', `cate' or `random*'.
`random' ignore special banners whereas `random*' does not."
(let ((banner (spacemacs-buffer//choose-banner))
(buffer-read-only nil))
@ -127,6 +128,8 @@ Doge special text banner can be reachable via `999', `doge' or `random*'.
(spacemacs-buffer//choose-random-text-banner t))
((eq 'doge dotspacemacs-startup-banner)
(spacemacs-buffer//get-banner-path 999))
((eq 'cate dotspacemacs-startup-banner)
(spacemacs-buffer//get-banner-path 998))
((integerp dotspacemacs-startup-banner)
(spacemacs-buffer//get-banner-path dotspacemacs-startup-banner))
((and dotspacemacs-startup-banner
@ -147,7 +150,7 @@ If ALL is non-nil then truly all banners can be selected."
(let* ((files (directory-files spacemacs-banner-directory t))
(count (length files))
;; -2 then +2 to remove `.' and `..'
(choice (+ 2 (random (- count (if all 2 3))))))
(choice (+ 2 (random (- count (if all 2 4))))))
(nth choice files)))
(defun spacemacs-buffer//get-banner-path (index)