From 249806bf29c34fd7a2c3aeb6949ed178453747aa Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 25 Oct 2023 09:20:22 +0100 Subject: [PATCH] Adjust order of elisp expressions Change custom-email-config config to start modes *after* the setting have been applied... --- home/emacs/modules/custom-email-config.el | 6 +++--- home/emacs/modules/custom-feed-config.el | 1 + home/emacs/modules/custom-ide-config.el | 1 - home/emacs/modules/custom-org-config.el | 1 + home/emacs/modules/custom-project-config.el | 1 + 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/home/emacs/modules/custom-email-config.el b/home/emacs/modules/custom-email-config.el index 5605985a..2c82c628 100644 --- a/home/emacs/modules/custom-email-config.el +++ b/home/emacs/modules/custom-email-config.el @@ -1,6 +1,3 @@ -(require 'notmuch) -(require 'notmuch-indicator) -(notmuch-indicator-mode +1) (setq mail-user-agent 'notmuch-user-agent notmuch-search-oldest-first nil notmuch-show-logo nil @@ -20,5 +17,8 @@ (:name "all mail" :query "*" :key [97] :sort-order nil :search-type tree)) notmuch-indicator-refresh-count 60 notmuch-indicator-args '((:terms "tag:unread and tag:inbox" :label "󰮒 "))) +(require 'notmuch) +(require 'notmuch-indicator) +(notmuch-indicator-mode +1) (provide 'custom-email-config) diff --git a/home/emacs/modules/custom-feed-config.el b/home/emacs/modules/custom-feed-config.el index cec84017..d96ed82c 100644 --- a/home/emacs/modules/custom-feed-config.el +++ b/home/emacs/modules/custom-feed-config.el @@ -7,4 +7,5 @@ (require 'elfeed-tube) (elfeed-org) (elfeed-tube-setup) + (provide 'custom-feed-config) diff --git a/home/emacs/modules/custom-ide-config.el b/home/emacs/modules/custom-ide-config.el index 18ebe90c..437d3adc 100644 --- a/home/emacs/modules/custom-ide-config.el +++ b/home/emacs/modules/custom-ide-config.el @@ -1,5 +1,4 @@ (setq direnv-always-show-summary nil) - (require 'treesit-auto) (global-treesit-auto-mode +1) (apheleia-global-mode +1) diff --git a/home/emacs/modules/custom-org-config.el b/home/emacs/modules/custom-org-config.el index 1ce79e8e..981014eb 100644 --- a/home/emacs/modules/custom-org-config.el +++ b/home/emacs/modules/custom-org-config.el @@ -12,4 +12,5 @@ org-refile-allow-creating-parent-nodes t org-refile-targets '((nil :maxlevel . 3) (org-agenda-files :maxlevel . 3))) + (provide 'custom-org-config) diff --git a/home/emacs/modules/custom-project-config.el b/home/emacs/modules/custom-project-config.el index 07c07aa2..999dd553 100644 --- a/home/emacs/modules/custom-project-config.el +++ b/home/emacs/modules/custom-project-config.el @@ -5,4 +5,5 @@ (project-find-regexp "Find regexp") (project-find-dir "Find directory") (project-eshell "Eshell"))) + (provide 'custom-project-config)