Use global-visual-line-mode

make message-send-mail-function use smtpmail-send-it like
send-mail-function does
This commit is contained in:
Evie Litherland-Smith 2024-02-14 07:18:29 +00:00
parent 54c13b3fdb
commit 4887642226

View file

@ -237,9 +237,7 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia
(with-eval-after-load 'diminish
(diminish 'visual-line-mode))
(global-visual-line-mode -1)
(add-hook 'text-mode-hook #'(lambda () (visual-line-mode +1)))
(add-hook 'prog-mode-hook #'(lambda () (visual-line-mode +1)))
(global-visual-line-mode +1)
(use-package which-key
:ensure t
@ -1130,15 +1128,19 @@ Set fill column to 88 and enable display in python buffers
** TODO Gnus
#+begin_src emacs-lisp :tangle yes
(setq gnus-select-method '(nnrss "http://www.fsf.org/static/fsforg/rss/news.xml"))
(use-package gnus
:config
(setq gnus-select-method '(nnnil))
;; http://www.fsf.org/static/fsforg/rss/news.xml
)
#+end_src
** Email
#+begin_src emacs-lisp
(setq sendmail-program (executable-find "msmtp")
send-mail-function #'smtpmail-send-it
message-send-mail-function #'message-smtpmail-send-it
message-sendmail-f-is-evil t
message-sendmail-extra-arguments '("--read-envelope-from")
message-send-mail-function #'message-send-mail-with-sendmail
message-auto-save-directory nil
message-kill-buffer-on-exit t
mail-user-agent 'mu4e-user-agent)
@ -1150,7 +1152,6 @@ Set fill column to 88 and enable display in python buffers
(("C-c m" . mu4e)
:map mu4e-view-mode-map
("o n" . mu4e-org-store-and-capture))
:hook (((mu4e-view-mode mu4e-compose-mode mu4e-org-mode) . (lambda () (visual-line-mode +1))))
:custom
(mu4e-completing-read-function #'completing-read-default)
(mu4e-split-view nil)