summaryrefslogtreecommitdiff
path: root/emacs/custom/my-notmuch.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-19 08:39:45 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-19 08:39:45 -0700
commit352e373f439027f29b491cf0842dbb42c4d00db8 (patch)
tree10324abfef9680f0366390583bc13ee4cb2275de /emacs/custom/my-notmuch.el
parentfeed update (diff)
downloademacs.d-352e373f439027f29b491cf0842dbb42c4d00db8.tar.gz
start to install packages without use-package
Define a list of packages in `init.el', and then use plain `require' in the various custom modules. The first two packages installed that way are: - notmuch - exec-path-from-shell
Diffstat (limited to '')
-rw-r--r--emacs/custom/my-notmuch.el25
1 files changed, 12 insertions, 13 deletions
diff --git a/emacs/custom/my-notmuch.el b/emacs/custom/my-notmuch.el
index b009f9e..c997b18 100644
--- a/emacs/custom/my-notmuch.el
+++ b/emacs/custom/my-notmuch.el
@@ -1,20 +1,19 @@
-;;; my-notmuch.el --- Configures notmuch
+;;; my-notmuch.el --- Configures notmuch -*- lexical-binding: t -*-
+
;;; Commentary:
+
;;; Code:
-(require 'use-package)
+(require 'notmuch)
-(use-package notmuch
- :ensure t
- :if (executable-find "notmuch")
- :hook
- (notmuch-message-mode . flyspell-mode)
- :custom
- (notmuch-show-logo nil)
- (notmuch-search-oldest-first nil)
- (notmuch-always-prompt-for-sender t)
- (notmuch-show-relative-dates t)
- (notmuch-archive-tags '("-inbox" "-unread")))
+(setq notmuch-show-logo nil)
+(setq notmuch-search-oldest-first nil)
+(setq notmuch-always-prompt-for-sender t)
+(setq notmuch-show-relative-dates t)
+(setq notmuch-archive-tags '("-inbox" "-unread"))
+
+(add-hook 'notmuch-message-mode-hook 'flyspell-mode)
(provide 'my-notmuch)
+
;;; my-notmuch.el ends here