From 05aff18514db415f4934e287d0a7b000687b456f Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sun, 25 May 2025 16:46:50 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-25 16:46:50 --- .config/aerc/aerc.conf | 3 ++- .config/kak/autoload/email.kak | 15 ++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.config/aerc/aerc.conf b/.config/aerc/aerc.conf index 78f75b56..58cf3883 100644 --- a/.config/aerc/aerc.conf +++ b/.config/aerc/aerc.conf @@ -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 diff --git a/.config/kak/autoload/email.kak b/.config/kak/autoload/email.kak index 14b4a251..252b83fe 100644 --- a/.config/kak/autoload/email.kak +++ b/.config/kak/autoload/email.kak @@ -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 } -} +~