AutoYADM commit: 2025-07-11 17:01:31

This commit is contained in:
Daniel Fichtinger 2025-07-11 17:01:31 -04:00
parent 6b7c794136
commit c5fe1d3d91
6 changed files with 30 additions and 19 deletions

View file

@ -153,8 +153,8 @@ hook global WinSetOption filetype=man %{
hook global WinSetOption filetype=kdl %{
set-option window formatcmd "kdlfmt format -"
hook -group kdl-auto-format window BufWritePre .* format
hook -once -always WinSetOption filetype=.* %{
hook -group kdl-auto-format window BufWritePre .* %{ try format }
hook -once -always window WinSetOption filetype=.* %{
unset-option window formatcmd
remove-hooks window kdl-auto-format
}

View file

@ -10,10 +10,3 @@ define-command ide %{
# set global toolsclient tools
}
# project-specific configuration
hook global BufCreate (.*/)?(\.kakrc\.local|\.kakrc\.local|\.kakrc) %{
set-option buffer filetype kak
}
try %{ source .kakrc } catch %{
try %{ source .kakrc.local } catch %{ try %{ source .local.kakrc } }
}

View file

@ -0,0 +1,5 @@
provide-module repl %∴
define-command repl %{
new %{ edit -scratch; set buffer filetype kak }
}

View file

@ -0,0 +1,15 @@
provide-module root %∴
declare-option str-list root_globs .git .kakrc kakrc
# project-specific configuration
hook global BufCreate (.*/)?(\.kakrc\.local|\.kakrc\.local|\.kakrc) %{
set-option buffer filetype kak
}
try %{ source .kakrc } catch %{
try %{ source .kakrc.local } catch %{ try %{ source .local.kakrc } }
}
hook global KakBegin .* %{
# discover project root
}