Add doom-modeline back, remove minions

Adjust mu4e modeline config to fit with doom better

Add binds to jump to last org capture and refile targets
This commit is contained in:
Evie Litherland-Smith 2024-08-06 16:21:57 +01:00
parent c4341242ba
commit 9df9b66bc8

View file

@ -19,8 +19,8 @@ time it's used.
(package-selected-packages (package-selected-packages
'( '(
;; UI ;; UI
base16-theme all-the-icons nerd-icons nerd-icons-completion base16-theme doom-modeline nerd-icons nerd-icons-completion
nerd-icons-corfu nerd-icons-dired nerd-icons-ibuffer minions nerd-icons-corfu nerd-icons-dired nerd-icons-ibuffer
ligature which-key diff-hl ligature which-key diff-hl
;; Completion ;; Completion
@ -105,6 +105,28 @@ Configure the look and feel of Emacs
(tool-bar-mode -1) (tool-bar-mode -1)
(scroll-bar-mode -1) (scroll-bar-mode -1)
#+end_src #+end_src
*** Modeline
#+begin_src emacs-lisp
(use-package doom-modeline
:hook (after-init . (lambda () (doom-modeline-mode +1)))
:custom
(doom-modeline-checker-simple-format nil)
(doom-modeline-enable-word-count t)
(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)
(doom-modeline-continuous-word-count-modes '(org-mode
markdown-mode
gfm-mode))
:config
(set-face-attribute 'doom-modeline nil :weight 'normal))
#+end_src
** Completion ** Completion
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq tab-always-indent 'complete (setq tab-always-indent 'complete
@ -239,10 +261,10 @@ Configure email with iCalendar event support, to integrate with
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(require 'mu4e-modeline) (require 'mu4e-modeline)
(setq mu4e-modeline-all-read '("R:" . "") (setq mu4e-modeline-all-read '("R:" . "R:")
mu4e-modeline-all-clear '("C:" . "") mu4e-modeline-all-clear '("C:" . "C:")
mu4e-modeline-new-items '("N:" . "") mu4e-modeline-new-items '("N:" . "N:")
mu4e-modeline-unread-items '("U:" . "")) mu4e-modeline-unread-items '("U:" . "U:"))
(mu4e-modeline-mode +1)) (mu4e-modeline-mode +1))
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
@ -607,13 +629,6 @@ Configure email with iCalendar event support, to integrate with
:requires nerd-icons :requires nerd-icons
:hook (after-init . (lambda () (nerd-icons-completion-mode +1)))) :hook (after-init . (lambda () (nerd-icons-completion-mode +1))))
(use-package minions
:if (package-installed-p 'minions)
:functions minions-mode
:hook (after-init . (lambda () (minions-mode +1)))
:custom
(minions-prominent-modes '(envrc-mode flymake-mode)))
(use-package ligature (use-package ligature
:if (package-installed-p 'ligature) :if (package-installed-p 'ligature)
:functions (ligature-set-ligatures :functions (ligature-set-ligatures
@ -791,6 +806,7 @@ Configure email with iCalendar event support, to integrate with
(use-package org-refile (use-package org-refile
:after (org org-agenda) :after (org org-agenda)
:bind ("M-g r" . org-refile-goto-last-stored)
:custom :custom
(org-outline-path-complete-in-steps nil) (org-outline-path-complete-in-steps nil)
(org-refile-use-outline-path t) (org-refile-use-outline-path t)
@ -823,7 +839,8 @@ Configure email with iCalendar event support, to integrate with
(use-package org-capture (use-package org-capture
:after org :after org
:bind ("C-c o n" . org-capture) :bind (("C-c o n" . org-capture)
("M-g o" . org-capture-goto-last-stored))
:custom (org-capture-templates :custom (org-capture-templates
'(("t" "TODO" entry '(("t" "TODO" entry
(file+olp "tasks.org.gpg" "Inbox") (file+olp "tasks.org.gpg" "Inbox")