Skip to content

Commit

Permalink
tweak(core-ui): make dashboard obsolete (it slows startup)
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed May 18, 2024
1 parent f752e56 commit edf330e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 25 deletions.
25 changes: 0 additions & 25 deletions core/me-core-ui.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,6 @@
(with-eval-after-load 'org
(doom-themes-org-config)))

(use-package dashboard
:straight t
:after evil evil-collection
:demand t
:unless (bound-and-true-p +dashboard-disable)
:init
(+map! "oD" #'dashboard-open)
:custom
(dashboard-set-heading-icons t)
(dashboard-set-file-icons t)
(dashboard-center-content t)
(dashboard-banner-ascii "MinEmacs")
(dashboard-banner-logo-title "Welcome to MinEmacs!")
(dashboard-items '((recents . 5) (projects . 5) (bookmarks . 5)))
(dashboard-image-banner-max-width 600)
(dashboard-projects-backend 'project-el)
(dashboard-startup-banner (concat minemacs-assets-dir "images/minemacs.png"))
:config
;; Ensure setting the keybindings before opening the dashboard
(with-eval-after-load 'evil (evil-collection-dashboard-setup))

;; Avoid opening the dashboard when Emacs starts with an open file.
(unless (cl-some #'buffer-file-name (buffer-list))
(dashboard-open)))

(use-package doom-modeline
:straight t
:unless (memq 'me-nano minemacs-modules)
Expand Down
40 changes: 40 additions & 0 deletions modules/obsolete/me-dashboard.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
;;; me-dashboard.el --- Dashboard for Emacs -*- lexical-binding: t; -*-

;; Copyright (C) 2022-2024 Abdelhak Bougouffa

;; Author: Abdelhak Bougouffa (rot13 "nobhtbhssn@srqbencebwrpg.bet")

;;; Commentary:

;;; Code:


(use-package dashboard
:straight t
:after evil evil-collection
:demand t
:unless (bound-and-true-p +dashboard-disable)
:init
(+map! "oD" #'dashboard-open)
:custom
(dashboard-set-heading-icons t)
(dashboard-set-file-icons t)
(dashboard-center-content t)
(dashboard-banner-ascii "MinEmacs")
(dashboard-banner-logo-title "Welcome to MinEmacs!")
(dashboard-items '((recents . 5) (projects . 5) (bookmarks . 5)))
(dashboard-image-banner-max-width 600)
(dashboard-projects-backend 'project-el)
(dashboard-startup-banner (concat minemacs-assets-dir "images/minemacs.png"))
:config
;; Ensure setting the keybindings before opening the dashboard
(with-eval-after-load 'evil (evil-collection-dashboard-setup))

;; Avoid opening the dashboard when Emacs starts with an open file.
(unless (cl-some #'buffer-file-name (buffer-list))
(dashboard-open)))


(provide 'obsolete/me-dashboard)

;;; me-dashboard.el ends here

0 comments on commit edf330e

Please sign in to comment.