diff options
author | Kyle Meyer <meyerkya@gmail.com> | 2013-01-12 12:44:44 -0500 |
---|---|---|
committer | Kyle Meyer <meyerkya@gmail.com> | 2013-01-12 13:56:01 -0500 |
commit | 96ee4bd0bd7b5cc8a6d9ca918ede26e82a9b20a7 (patch) | |
tree | 9065fbcdd65c7c80dbc15859d9ea6dd8507b256d /init/km-mail.el | |
parent | f5b226cae165532ed34ffefd7d003d10d984f004 (diff) | |
download | emacs.d-96ee4bd0bd7b5cc8a6d9ca918ede26e82a9b20a7.tar.gz |
glob init files files for loading
Diffstat (limited to 'init/km-mail.el')
-rw-r--r-- | init/km-mail.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/init/km-mail.el b/init/km-mail.el new file mode 100644 index 0000000..7a48417 --- /dev/null +++ b/init/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) |