AutoYADM commit: 2025-05-26 20:50:39

This commit is contained in:
Daniel Fichtinger 2025-05-26 20:50:39 -04:00
parent 405e779c5e
commit e9b8ab9717
3 changed files with 43 additions and 18 deletions

View file

@ -1,15 +1 @@
declare-option -docstring 'mail formatter' str mail_fmt '/home/fic/dev/utils/mail-utils/format.py'
hook global WinSetOption filetype=mail %~
set-option window formatcmd %opt{mail_fmt}
set-option window comment_line '>'
hook -group mail-spell window ModeChange (push|pop):.*insert %{
try %{ spell-clear }
}
hook -group mail-spell window NormalIdle .* %{ try spell }
hook -group mail-auto-format window BufWritePre .* format
hook -once -always window WinSetOption filetype=.* %{
unset-option window formatcmd
remove-hooks window mail-auto-format
}
~