Emacs UI tweaks

Add recent files back to dashboard, add hook to update khalel events
This commit is contained in:
Evie Litherland-Smith 2023-11-04 12:19:02 +00:00
parent 7dc9369362
commit ecab40b62b

View file

@ -50,7 +50,6 @@
doom-modeline-persp-name nil doom-modeline-persp-name nil
doom-modeline-persp-icon nil) doom-modeline-persp-icon nil)
(when (require 'doom-modeline nil :noerror) (when (require 'doom-modeline nil :noerror)
(display-battery-mode)
(doom-modeline-mode +1)) (doom-modeline-mode +1))
;; Dashboard ;; Dashboard
@ -65,8 +64,10 @@
dashboard-projects-switch-function 'project-switch-project dashboard-projects-switch-function 'project-switch-project
dashboard-projects-show-base t dashboard-projects-show-base t
dashboard-recentf-show-base 'align dashboard-recentf-show-base 'align
dashboard-items '((agenda . 20)) dashboard-items '((recents . 5)
dashboard-heading-icons '((agenda . "nf-oct-calendar")) (agenda . 15))
dashboard-heading-icons '((recents . "nf-oct-history")
(agenda . "nf-oct-calendar"))
dashboard-banner-ascii (concat " .000000. \n" dashboard-banner-ascii (concat " .000000. \n"
" .0. .0. \n" " .0. .0. \n"
" .00. .00. \n" " .00. .00. \n"
@ -81,7 +82,8 @@
" HHH HHHH HHHHHHHHH HHHH \n" " HHH HHHH HHHHHHHHH HHHH \n"
" HHH HHHHHH \n" " HHH HHHHHH \n"
" HHHHH HH \n")) " HHHHH HH \n"))
(require 'dashboard nil :noerror) (when (require 'dashboard nil :noerror)
(add-hook 'dashboard-mode-hook #'khalel-import-events))
;; Extra minor-modes ;; Extra minor-modes
(when (require 'which-key nil :noerror) (when (require 'which-key nil :noerror)