From f273bad2f76eb819e4574c0dc2866a4a7d287c86 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Wed, 7 Dec 2022 22:36:15 +0100 Subject: Improve mail composition in Emacs --- emacs-init.el | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/emacs-init.el b/emacs-init.el index 1b09e70d..6c32129f 100644 --- a/emacs-init.el +++ b/emacs-init.el @@ -2,6 +2,11 @@ ;;; Commentary: ;;; Code: +;; Load settings set through Custom. +;; (setq custom-file (locate-user-emacs-file "custom.el")) +;; (when (file-readable-p custom-file) +;; (load custom-file)) + (defun tw/xdg-emacs-subdir (type name) "Get the name of a subdirectory called NAME under $XDG__HOME/emacs." (expand-file-name @@ -49,10 +54,7 @@ (,(rx ".gnuplot" eos) . gnuplot-mode) (,(rx ".aurora" eos) . python-mode))) -;; Load settings set through Custom. -;; (setq custom-file (locate-user-emacs-file "custom.el")) -;; (when (file-readable-p custom-file) -;; (load custom-file)) +(add-hook 'mail-mode-hook #'auto-fill-mode) ;; `use-package' requirements. (require 'package) @@ -179,6 +181,9 @@ :hook company-mode :diminish company-posframe-mode) +(use-package flyspell + :hook mail-mode) + (use-package flymake :after (evil which-key) :hook prog-mode -- cgit v1.2.3