From 9de86bb1176c7ad3ef87d2d801b2c60bc9480661 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 17 Nov 2023 17:13:24 +0000 Subject: [PATCH] Add more doom-modeline formatting Add minions package to control minor modes Remove some unused packages --- home/emacs/default.nix | 5 ----- home/emacs/init.el | 22 ++++++++++++---------- home/emacs/init.org | 28 +++++++++++++++------------- 3 files changed, 27 insertions(+), 28 deletions(-) diff --git a/home/emacs/default.nix b/home/emacs/default.nix index 64859af5..9e3021c2 100644 --- a/home/emacs/default.nix +++ b/home/emacs/default.nix @@ -30,7 +30,6 @@ consult-yasnippet # ide-packages - vterm treesit-grammars.with-all-grammars treesit-auto apheleia @@ -39,7 +38,6 @@ rainbow-delimiters aggressive-indent nix-mode - anaconda-mode rust-mode lua-mode @@ -47,7 +45,6 @@ emms # org-packages - org-roam org-noter org-cliplink org-journal @@ -59,7 +56,6 @@ # project-packages ibuffer-project - perspective magit forge @@ -80,7 +76,6 @@ which-key link-hint darkroom - shackle # writing-packages markdown-mode diff --git a/home/emacs/init.el b/home/emacs/init.el index 092a12a2..f9454444 100644 --- a/home/emacs/init.el +++ b/home/emacs/init.el @@ -238,25 +238,27 @@ (display-battery-mode -1) (setq doom-modeline-icon t - doom-modeline-mu4e t) + doom-modeline-minor-modes t + doom-modeline-buffer-encoding 'nondefault + doom-modeline-checker-simple-format nil + doom-modeline-enable-word-count t + doom-modeline-continuous-word-count-modes '(org-mode + markdown-mode + gfm-mode)) (use-package doom-modeline :ensure t :config (doom-modeline-mode +1)) +(use-package minions + :ensure t + :config + (minions-mode +1)) + (use-package darkroom :ensure t :bind (("C-c d" . darkroom-mode))) -(setq shackle-rules '((compilation-mode :noselect t) - ((list mu4e-main-mode mu4e-headers-mode) - :same t :inhibit-window-quit t) - (magit-mode :other t)) - shackle-default-rule '(:select t)) -(use-package shackle - :disabled - :config (shackle-mode +1)) - (setq org-directory "~/Org" org-default-notes-file (expand-file-name "notes.org" org-directory) org-pretty-entities-include-sub-superscripts t diff --git a/home/emacs/init.org b/home/emacs/init.org index 99af55d5..69ccdc4e 100644 --- a/home/emacs/init.org +++ b/home/emacs/init.org @@ -278,13 +278,27 @@ *** Doom Modeline #+begin_src emacs-lisp (setq doom-modeline-icon t - doom-modeline-mu4e t) + doom-modeline-minor-modes t + doom-modeline-buffer-encoding 'nondefault + doom-modeline-checker-simple-format nil + doom-modeline-enable-word-count t + doom-modeline-continuous-word-count-modes '(org-mode + markdown-mode + gfm-mode)) (use-package doom-modeline :ensure t :config (doom-modeline-mode +1)) #+end_src +*** Minions +#+begin_src emacs-lisp :tangle yes + (use-package minions + :ensure t + :config + (minions-mode +1)) +#+end_src + ** Darkroom #+begin_src emacs-lisp (use-package darkroom @@ -292,18 +306,6 @@ :bind (("C-c d" . darkroom-mode))) #+end_src -** Shackle -#+begin_src emacs-lisp - (setq shackle-rules '((compilation-mode :noselect t) - ((list mu4e-main-mode mu4e-headers-mode) - :same t :inhibit-window-quit t) - (magit-mode :other t)) - shackle-default-rule '(:select t)) - (use-package shackle - :disabled - :config (shackle-mode +1)) -#+end_src - * Org-mode For reference information, see [[https://orgmode.com][Org-mode website]]