diff options
Diffstat (limited to 'conf/km-mail.el')
-rw-r--r-- | conf/km-mail.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/conf/km-mail.el b/conf/km-mail.el new file mode 100644 index 0000000..7a48417 --- /dev/null +++ b/conf/km-mail.el @@ -0,0 +1,15 @@ +(add-to-list 'auto-mode-alist '("/mutt" . mail-mode)) + +(defun km/mail-position () + "Move cursor to first blank line +and position cursor between two blank lines" + (interactive) + (forward-paragraph) + (insert "\n\n") + (previous-line)) + +(defun km/mail-mode-hook () + (auto-fill-mode 1) + (km/mail-position)) + +(add-hook 'mail-mode-hook 'km/mail-mode-hook) |