Play nice with [[https://marlam.de/msmtp/][msmtp]] and fetch mail via custom [[https://github.com/alrayyes/dotfiles/blob/master/mutt/.local/bin/mailsync][mailsync]] shell script.
#+BEGIN_SRC emacs-lisp
(use-package! notmuch
:config
(setq +notmuch-sync-backend nil ; Needed to make sure notmuch-sync-command below is run when notmmuch is loaded
+notmuch-sync-command "mailsync" ; Command to fetch email
sendmail-program "/usr/bin/msmtp" ; Use msmtp to send mail
message-sendmail-f-is-evil t; Non-nil means don't add "-f username" to the sendmail command line.
message-sendmail-extra-arguments '("--read-envelope-from") ; Additional arguments to sendmail-program.
message-send-mail-function 'message-send-mail-with-sendmail) ; Function to call to send the current buffer as mail.
)
#+END_SRC
* [[https://orgmode.org/][Org mode]]
When moving entries up and down in the buffer use `j` and `k` instead of `↑` and `↓`
#+BEGIN_SRC emacs-lisp
(after! org
(map! :map org-mode-map
:n "M-j" #'org-metadown
:n "M-k" #'org-metaup)
)
#+END_SRC
- Set default org directory
- When task is set to `DONE` [[https://orgmode.org/manual/Closing-items.html][add timestamp and give the opportunity to type in a note]]