about summary refs log tree commit diff
path: root/users/tazjin/emacs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-03-19T20·16+0200
committertazjin <mail@tazj.in>2021-03-19T23·07+0000
commiteb110e9d7c1e95e92fea6d72f26d77c831973a18 (patch)
treeac1d5d297078c298faa552041975790e9451045a /users/tazjin/emacs
parenta01fe5c06fc99bd66c681b981f63534e03063aee (diff)
fix(tazjin/emacs): Set notmuch custom variables through :custom r/2287
It seems like some of them end up file-local anyways, and the explicit
call to `custom-set-variables` in mail-setup.el had seemingly no effect.

Change-Id: Iad5011b5f8348b1ca5973813995c9644ac85ddf5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2610
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/emacs')
-rw-r--r--users/tazjin/emacs/config/init.el8
-rw-r--r--users/tazjin/emacs/config/mail-setup.el1
2 files changed, 4 insertions, 5 deletions
diff --git a/users/tazjin/emacs/config/init.el b/users/tazjin/emacs/config/init.el
index b473746fbe6a..b37fab81faf7 100644
--- a/users/tazjin/emacs/config/init.el
+++ b/users/tazjin/emacs/config/init.el
@@ -78,10 +78,10 @@
 (use-package multiple-cursors)
 
 (use-package notmuch
-  :config
-  (setq notmuch-search-oldest-first nil)
-  (setq notmuch-show-all-tags-list t)
-  (setq notmuch-hello-tag-list-make-query "tag:unread"))
+  :custom
+  (notmuch-search-oldest-first nil)
+  (notmuch-show-all-tags-list t)
+  (notmuch-hello-tag-list-make-query "tag:unread"))
 
 (use-package paredit :hook ((lisp-mode . paredit-mode)
                             (emacs-lisp-mode . paredit-mode)))
diff --git a/users/tazjin/emacs/config/mail-setup.el b/users/tazjin/emacs/config/mail-setup.el
index 2d89ed75edcc..1167bcadd372 100644
--- a/users/tazjin/emacs/config/mail-setup.el
+++ b/users/tazjin/emacs/config/mail-setup.el
@@ -22,7 +22,6 @@
       '((:name "inbox" :query "tag:inbox" :count-query "tag:inbox AND tag:unread" :key "i")
         (:name "sent" :query "tag:sent" :key "t")
         (:name "drafts" :query "tag:draft")))
-(custom-set-variables '(notmuch-search-oldest-first nil))
 (setq notmuch-show-empty-saved-searches t)
 
 ;; Mail sending configuration