diff --git a/.config/aerc/aerc.conf b/.config/aerc/aerc.conf index c4a116c6..49902446 100644 --- a/.config/aerc/aerc.conf +++ b/.config/aerc/aerc.conf @@ -593,7 +593,8 @@ reverse-thread-order=true # Default: less -Rc # pager=hx # pager=less -Rc -k ~/.config/lesskey -pager=kak -ro -e 'set buffer filetype mail' +; pager=kak -ro -e 'def -hidden ismailreader nop; set buffer filetype mail' +pager=kak -e 'set buffer filetype mail' # # If an email offers several versions (multipart), you can configure which diff --git a/.config/aerc/binds.conf b/.config/aerc/binds.conf index 9e67af12..f45a29d6 100644 --- a/.config/aerc/binds.conf +++ b/.config/aerc/binds.conf @@ -120,7 +120,7 @@ ps = :patch switch = :recall [view] -/ = :toggle-key-passthrough/ +\ = :toggle-key-passthrough q = :close O = :open o = :open diff --git a/.config/kak/autoload/filetype.kak b/.config/kak/autoload/filetype.kak index de2b4e78..87dca6ec 100644 --- a/.config/kak/autoload/filetype.kak +++ b/.config/kak/autoload/filetype.kak @@ -73,13 +73,25 @@ hook global WinSetOption filetype=kdl %{ } hook global WinSetOption filetype=mail %~ - set-option window formatcmd '/home/fic/dev/utils/mail-utils/format.py' - set-option window comment_line '>' - try autospell-enable - hook -group mail-auto-format window BufWritePre .* format - hook -once -always window WinSetOption filetype=.* %{ - unset-option window formatcmd - remove-hooks window mail-auto-format + nop %sh{ notify-send 'runs' } + try %{ + ismailreader + nop %sh{ notify-send 'is mail reader' } + try %{ + # remove these highlighters so everything displays properly + remove-highlighter window/number-lines + remove-highlighter window/show-whitespaces + ui-wrap-disable + } + } catch %{ + set-option window formatcmd '/home/fic/dev/utils/mail-utils/format.py' + set-option window comment_line '>' + try autospell-enable + hook -group mail-auto-format window BufWritePre .* format + hook -once -always window WinSetOption filetype=.* %{ + unset-option window formatcmd + remove-hooks window mail-auto-format + } } ~