AutoYADM commit: 2025-05-31 16:32:26
This commit is contained in:
parent
b3236aab46
commit
1e678e6204
3 changed files with 22 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue