From 8931891baf6de00646e6c1961e45b1368d80ce7f Mon Sep 17 00:00:00 2001 From: BardofSprites <89086143+BardofSprites@users.noreply.github.com> Date: Wed, 28 Aug 2024 08:20:00 -0400 Subject: restore dashboard --- bard-emacs-modules/bard-emacs-dashboard.el | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 bard-emacs-modules/bard-emacs-dashboard.el (limited to 'bard-emacs-modules/bard-emacs-dashboard.el') diff --git a/bard-emacs-modules/bard-emacs-dashboard.el b/bard-emacs-modules/bard-emacs-dashboard.el new file mode 100644 index 0000000..87f9044 --- /dev/null +++ b/bard-emacs-modules/bard-emacs-dashboard.el @@ -0,0 +1,32 @@ +(require 'bard-dashboard) + +(use-package dashboard + :ensure t + :config + (define-key global-map (kbd "") #'dashboard-open) + (define-key global-map (kbd "C-z d") #'dashboard-open) + (setq initial-buffer-choice 'dashboard-open) + (dashboard-setup-startup-hook) + (setq dashboard-startup-banner "~/.emacs.d/img/emacslogo.png") + (setq dashboard-banner-logo-width 50) + (setq dashboard-banner-logo-height 50) + (setq dashboard-center-content t) + ;; dashboar items + (setq dashboard-items '((recents . 5) + (agenda . 5))) + + ;; Insert custom item + (add-to-list 'dashboard-item-generators '(custom . dashboard-insert-custom)) + (add-to-list 'dashboard-items '(custom) t) + + (setq dashboard-banner-logo-title "Time for another recreational programming session.") + (setq dashboard-startupify-list '(dashboard-insert-banner + dashboard-insert-newline + dashboard-insert-banner-title + dashboard-insert-newline + dashboard-insert-items + dashboard-insert-newline)) + + (setq dashboard-set-init-info nil)) + +(provide 'bard-emacs-dashboard) -- cgit v1.2.3