config/emacs: try enlight to replace dashboard.el

This commit is contained in:
Sakooooo 2024-10-05 12:16:56 +04:00
parent ebb1cf832c
commit 46db94d4e8
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -590,28 +590,46 @@ kept-old-versions 5)
#+end_src #+end_src
** Dashboard ** Dashboard
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package dashboard ;; (use-package dashboard
:init ;; :init
(setq initial-buffer-choice 'dashboard-open) ;; (setq initial-buffer-choice 'dashboard-open)
;; Set the title ;; ;; Set the title
(setq dashboard-banner-logo-title "GET ME OUT GET ME OUT GET ME OUT") ;; (setq dashboard-banner-logo-title "GET ME OUT GET ME OUT GET ME OUT")
(setq dashboard-image-banner-max-height 200) ;; (setq dashboard-image-banner-max-height 200)
;; Set the banner ;; ;; Set the banner
(setq dashboard-startup-banner '"~/.emacs.d/icon.png") ;; (setq dashboard-startup-banner '"~/.emacs.d/icon.png")
(setq dashboard-center-content t) ;; (setq dashboard-center-content t)
(setq dashboard-vertically-center-content t) ;; (setq dashboard-vertically-center-content t)
(setq dashboard-show-shortcuts nil) ;; (setq dashboard-show-shortcuts nil)
;; nerd icons ;; ;; nerd icons
(setq dashboard-display-icons-p t) ; display icons on both GUI and terminal ;; (setq dashboard-display-icons-p t) ; display icons on both GUI and terminal
(setq dashboard-icon-type 'nerd-icons) ; use `nerd-icons' package ;; (setq dashboard-icon-type 'nerd-icons) ; use `nerd-icons' package
;; list stuff ;; ;; list stuff
(setq dashboard-items '((recents . 3) ;; (setq dashboard-items '((recents . 3)
(projects . 3) ;; (projects . 3)
(agenda . 3))) ;; (agenda . 3)))
;; :config
;; (dashboard-setup-startup-hook))
#+end_src
** Enlight
#+begin_src emacs-lisp
(use-package enlight
:config :config
(dashboard-setup-startup-hook)) (setopt initial-buffer-choice #'enlight)
:custom
(enlight-content
(concat
(propertize "MENU" 'face 'highlight)
"\n"
(enlight-menu
'(("Org Mode"
("Org-Agenda (current day)" (org-agenda nil "a") "a"))
("Hi"
("mu4e" mu4e "m"))
("Other"
("Projects" project-switch-project "p")))))))
#+end_src #+end_src
* Auth * Auth
#+begin_src emacs-lisp #+begin_src emacs-lisp