AutoYADM commit: 2025-05-14 01:07:19

This commit is contained in:
Daniel Fichtinger 2025-05-14 01:07:19 -04:00
parent 4fb73fc692
commit d4dc8ddb4a
3 changed files with 10 additions and 5 deletions

View file

@ -19,3 +19,4 @@ abbr -a hniri hx /home/fic/.config/niri/main.kdl
abbr -a hbf hut builds show --follow
abbr -a k kak
abbr -a krc kak -e \'cd ~/.config/kak\' ~/.config/kak/kakrc
abbr -a kakrc kak -e \'cd ~/.config/kak\' ~/.config/kak/kakrc

View file

@ -13,8 +13,3 @@ hook global WinSetOption filetype=kak %{
# set-option window expandtab false
}
hook global WinSetOption filetype=markdown %{
set-option window formatcmd "dprint fmt --stdin md"
}

View file

@ -0,0 +1,9 @@
hook global WinSetOption filetype=markdown %{
hook -group markdown-auto-format window BufWritePre .* format
set-option window formatcmd "dprint fmt --stdin md"
hook -once -always WinSetOption filetype=.* %{
unset-option window formatcmd
remove-hooks window markdown-auto-format
}
}