From c005801390d562226c509d05fabddfa76792b3a5 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 6 Jan 2025 07:09:45 +0000 Subject: [PATCH] Add config back for doom-modeline and dashboard --- init.el | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 6a58ef7..0aa509e 100644 --- a/init.el +++ b/init.el @@ -67,11 +67,59 @@ :if (package-installed-p 'nerd-icons-corfu) :after nerd-icons) -(setopt mode-line-compact 'long) +(use-package doom-modeline + :if (package-installed-p 'doom-modeline) + :functions (doom-modeline-mode) + :custom + (doom-modeline-env-version t) + (doom-modeline-github nil) + (doom-modeline-gnus t) + (doom-modeline-mu4e t) + (doom-modeline-icon t) + (doom-modeline-irc t) + (doom-modeline-irc-buffers t) + (doom-modeline-lsp t) + (doom-modeline-project-detection 'project) + :init + (line-number-mode +1) + (column-number-mode +1) + (size-indication-mode -1) + (doom-modeline-mode +1) + :config + ;; (set-face-attribute 'doom-modeline nil :weight 'normal) + ;; (set-face-attribute 'doom-modeline-buffer-path nil :slant 'normal) + ) -(line-number-mode +1) -(column-number-mode +1) -(size-indication-mode -1) +(use-package dashboard + :if (package-installed-p 'dashboard) + :functions (dashboard-setup-startup-hook) + :custom + (dashboard-banner-logo-title nil) + (dashboard-banner-ascii "EMACS") + (dashboard-startup-banner (locate-user-emacs-file "banners/ansi_shadow.txt")) + (dashboard-center-content t) + (dashboard-vertical-center-content t) + (dashboard-show-shortcuts t) + (dashboard-set-init-info t) + (dashboard-icon-type 'nerd-icons) + (dashboard-set-file-icons t) + (dashboard-set-heading-icons t) + (dashboard-projects-backend 'project-el) + (dashboard-week-agenda t) + (dashboard-agenda-sort-strategy '(todo-state-up time-up)) + (dashboard-items '((agenda . 5) + (recents . 5) + (bookmarks . 5))) + (dashboard-heading-icons '((recents . "nf-oct-history") + (bookmarks . "nf-oct-bookmark") + (agenda . "nf-oct-calendar") + (projects . "nf-oct-rocket") + (registers . "nf-oct-database"))) + :init + (setq initial-buffer-choice #'(lambda () + (get-buffer-create "*dashboard*"))) + :config + (dashboard-setup-startup-hook)) (global-visual-line-mode +1) (setopt visual-line-fringe-indicators '(left-curly-arrow right-curly-arrow))