;; ==========6. dashboard==========;; -*- lexical-binding: t; -*-

 (use-package dashboard
   :ensure t
   :config
   ;; Set the title
   (setq dashboard-banner-logo-title "YoursAF InSide")
   ;; Set the banner
   (setq dashboard-startup-banner 'logo)
   ;; Value can be
   ;; 'official which displays the official emacs logo
   ;; 'logo which displays an alternative emacs logo
   ;; 1, 2 or 3 which displays one of the text banners
   ;; "path/to/your/image.gif", "path/to/your/image.png" or "path/to/your/text.txt" which displays whatever gif/image/text you would prefer
   ;; To disable shortcut "jump" indicators for each section, set
   (setq dashboard-show-shortcuts nil)
   (setq dashboard-items '((recents  . 10)
                           ))
   (setq dashboard-set-navigator t)
   (setq dashboard-set-heading-icons t);;显示图标
   (setq dashboard-set-file-icons t);;显示文件图标
   (setq dashboard-center-content t)
   (dashboard-modify-heading-icons '((recents . "file-text")
                                     (bookmarks . "book")))
   (setq dashboard-footer-messages '("Good good study,day day up!"))
   (setq dashboard-footer-icon (all-the-icons-octicon "dashboard"
                                                      :height 1.1
                                                      :v-adjust -0.05
                                                      :face 'font-lock-keyword-face))
   (setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*")))
   (dashboard-setup-startup-hook)
   )
;;    :diminish dashboard-mode
;;    (setq dashboard-startup-banner "/path/to/image")

(message "Loading Dashboard...DONE")
(provide 'init-dashboard)

;;; init-dashboard.el ends here
