From ac1a4884d03fc0495c773500d8a13f84b695fa43 Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Wed, 11 Sep 2019 19:18:14 -0400 Subject: Init --- emacs/inits/06-dashboard.el | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 emacs/inits/06-dashboard.el (limited to 'emacs/inits/06-dashboard.el') diff --git a/emacs/inits/06-dashboard.el b/emacs/inits/06-dashboard.el new file mode 100644 index 0000000..7aae2a0 --- /dev/null +++ b/emacs/inits/06-dashboard.el @@ -0,0 +1,30 @@ +;; Time-stamp: <2019-09-11 10:42:40 (tslil@basingstoke)> + +(use-package fortune + :config + (setq fortune-dir "/usr/share/games/fortunes/" + fortune-program "fortune" + fortune-file "/usr/share/games/fortunes/cookie" + fortune-program-options '("-s")) + (defun dashboard-fortune (n) + (insert + (with-temp-buffer + (let ((fortune-buffer-name (current-buffer))) + (fortune-in-buffer t) + (buffer-string)))))) + +(use-package dashboard + :ensure t + :config + (add-to-list 'dashboard-item-generators '(fortune . dashboard-fortune)) + + (setq dashboard-center-content t + dashboard-set-init-info t + dashboard-set-footer nil + dashboard-startup-banner 1 + dashboard-items '((recents . 5) + (projects . 5) + (fortune . 0)) + dashboard-init-info (format "Welcome ~%s!" (user-login-name))) + + (dashboard-setup-startup-hook)) -- cgit v1.2.3