AutoYADM commit: 2025-05-25 16:46:50

This commit is contained in:
Daniel Fichtinger 2025-05-25 16:46:50 -04:00
parent c98d105253
commit 05aff18514
2 changed files with 12 additions and 6 deletions

View file

@ -641,7 +641,8 @@ always-show-mime=true
# Specifies the command to run the editor with. It will be shown in an embedded
# terminal, though it may also launch a graphical window if the environment
# supports it. Defaults to $EDITOR, or vi.
editor=/home/fic/.config/aerc/helix-config/hx.sh
; editor=/home/fic/.config/aerc/helix-config/hx.sh
editor=kak
#
# When set, aerc will create and read .eml files for composing that have

View file

@ -1,12 +1,17 @@
# 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 %{
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 ModeChange (push|pop):insert:.* %{
try %{ spell }
}
hook -group mail-auto-format window BufWritePre .* format
hook -once -always WinSetOption filetype=.* %{
unset-option window formatcmd
remove-hooks window mail-auto-format
}
}
~