blob: aa09b500eb9396734479787ff595a0a60295bd5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
-- Detect mutt temporary files as mail
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = { "/tmp/mutt-*", "/tmp/neomutt-*" },
callback = function()
vim.bo.filetype = "mail"
end,
})
-- Set options for mutt temp files in /tmp
vim.api.nvim_create_autocmd("BufRead", {
pattern = { "/tmp/mutt-*", "/tmp/neomutt-*" },
callback = function()
vim.opt_local.textwidth = 72
end,
})
-- Mail ftplugin settings
vim.opt_local.textwidth = 72
vim.opt_local.colorcolumn = "72"
vim.opt_local.spell = true
|