2021-04-30 11:51:40 +00:00
|
|
|
setlocal filetype=mail
|
2021-04-04 12:25:55 +00:00
|
|
|
setlocal foldexpr=himalaya#shared#thread#fold(v:lnum)
|
2021-04-03 10:12:26 +00:00
|
|
|
setlocal foldmethod=expr
|
|
|
|
setlocal startofline
|
|
|
|
|
2021-11-01 08:38:15 +00:00
|
|
|
if exists("g:himalaya_complete_contact_cmd")
|
|
|
|
setlocal completefunc=himalaya#msg#complete_contact
|
|
|
|
endif
|
|
|
|
|
2021-04-23 16:05:03 +00:00
|
|
|
augroup himalaya_write
|
2021-04-03 10:12:26 +00:00
|
|
|
autocmd! * <buffer>
|
|
|
|
autocmd BufWriteCmd <buffer> call himalaya#msg#draft_save()
|
2021-10-10 20:58:57 +00:00
|
|
|
autocmd BufLeave <buffer> call himalaya#msg#draft_handle()
|
2021-04-03 10:12:26 +00:00
|
|
|
augroup end
|