diff --git a/init.el b/init.el index bd2a435..2fc95fd 100644 --- a/init.el +++ b/init.el @@ -11,5 +11,5 @@ (require 'init-errors) ; 错误/警告提示引擎配置 (require 'init-projectile) ; 项目管理配置 (require 'init-magit) ; git客户端 - +(require 'init-dashboard) ; 首页配置 ;;; init.el ends here diff --git a/lisp/init-dashboard.el b/lisp/init-dashboard.el new file mode 100644 index 0000000..f7943ef --- /dev/null +++ b/lisp/init-dashboard.el @@ -0,0 +1,18 @@ +;;; init-dashboard -- 首页配置 -*- lexical-binding: t no-byte-compile: t -*- +;;; Commentary: +;;; Code: +;;; 配置开始 + +(use-package dashboard + :ensure t + :config + (setq dashboard-banner-logo-title "欢迎您!邵静!") ;; 个性签名,随读者喜好设置 + (setq dashboard-projects-backend 'projectile) ;; 读者可以暂时注释掉这一行,等安装了 projectile 后再使用 + (setq dashboard-startup-banner 'official) ;; 也可以自定义图片 + (setq dashboard-items '((recents . 5) ;; 显示多少个最近文件 + (bookmarks . 5) ;; 显示多少个最近书签 + (projects . 10))) ;; 显示多少个最近项目 + (setq dashboard-set-file-icons t) + (dashboard-setup-startup-hook)) +(provide 'init-dashboard) +;;; init-dashboard.el ends here