setlocal filetype=mail setlocal foldexpr=himalaya#shared#thread#fold(v:lnum) setlocal foldmethod=expr setlocal startofline if exists("g:himalaya_complete_contact_cmd") setlocal completefunc=himalaya#msg#complete_contact endif call himalaya#shared#bindings#define([ \["n", "ga", "msg#add_attachment"], \]) augroup himalaya_write autocmd! * autocmd BufWriteCmd call himalaya#msg#draft_save() autocmd BufLeave call himalaya#msg#draft_handle() augroup end