From 49e242236eee426131d51bc761feca5d4441093c Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 29 Feb 2024 14:37:49 +0000 Subject: [PATCH] Add and configure doom-modeline again --- config/ui.org | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/config/ui.org b/config/ui.org index b5bf45b..9db1367 100644 --- a/config/ui.org +++ b/config/ui.org @@ -198,10 +198,32 @@ (setq mode-line-compact 'long) #+end_src +** doom-modeline +#+begin_src emacs-lisp + (use-package doom-modeline + :ensure t + :after modus-themes + :custom + (doom-modeline-checker-simple-format nil) + (doom-modeline-enable-word-count t) + (doom-modeline-env-version nil) + (doom-modeline-github nil) + (doom-modeline-gnus t) + (doom-modeline-icon t) + (doom-modeline-irc t) + (doom-modeline-lsp t) + (doom-modeline-project-detection 'project) + (doom-modeline-continuous-word-count-modes '(org-mode + markdown-mode + gfm-mode)) + :config + (doom-modeline +1)) +#+end_src ** Battery state for laptops #+begin_src emacs-lisp - (when (battery-upower) - (display-battery-mode +1)) + (with-eval-after-load 'battery + (when (battery-upower) + (display-battery-mode +1))) #+end_src * Dashboard #+begin_src emacs-lisp