AutoYADM commit: 2025-05-25 16:31:39
This commit is contained in:
parent
ebc5c24725
commit
c98d105253
1 changed files with 12 additions and 0 deletions
12
.config/kak/autoload/email.kak
Normal file
12
.config/kak/autoload/email.kak
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# hook global BufCreate .*aerc-compose-\d+[.]eml %{
|
||||||
|
# set-option buffer filetype mail
|
||||||
|
# }
|
||||||
|
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}
|
||||||
|
hook -group mail-auto-format window BufWritePre .* format
|
||||||
|
hook -once -always WinSetOption filetype=.* %{
|
||||||
|
unset-option window formatcmd
|
||||||
|
remove-hooks window mail-auto-format
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue