-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tweak(core-ui): make
dashboard
obsolete (it slows startup)
- Loading branch information
1 parent
f752e56
commit edf330e
Showing
2 changed files
with
40 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |