diff options
Diffstat (limited to 'emacs/custom')
-rw-r--r-- | emacs/custom/my-notmuch.el | 25 | ||||
-rw-r--r-- | emacs/custom/my-settings.el | 9 |
2 files changed, 15 insertions, 19 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 diff --git a/emacs/custom/my-settings.el b/emacs/custom/my-settings.el index 04d0182..4f6621b 100644 --- a/emacs/custom/my-settings.el +++ b/emacs/custom/my-settings.el @@ -64,12 +64,9 @@ :init (savehist-mode)) -(use-package exec-path-from-shell - :ensure t - :if (memq window-system '(mac ns)) - :hook (emacs-startup . (lambda () - (setq exec-path-from-shell-arguments '("-l")) ; removed the -i for faster startup - (exec-path-from-shell-initialize)))) +(when (memq window-system '(mas ns)) + (require 'exec-path-from-shell) + (add-hook 'emacs-startup-hook (lambda () (exec-path-from-shell-initialize)))) (provide 'my-settings) ;;; my-settings.el ends here |