diff --git a/rc/clang.kak b/rc/clang.kak index 79250771..986cefc8 100644 --- a/rc/clang.kak +++ b/rc/clang.kak @@ -63,9 +63,11 @@ def clang-enable-autocomplete %{ echo 'completing...' clang-complete } } + alias window complete clang-complete } def clang-disable-autocomplete %{ set window completers %sh{ echo "'${kak_opt_completers}'" | sed -e 's/option=clang_completions://g' } rmhooks window clang-autocomplete + unalias window complete clang-complete } diff --git a/rc/jedi.kak b/rc/jedi.kak index 584022db..d3e4a2c8 100644 --- a/rc/jedi.kak +++ b/rc/jedi.kak @@ -40,9 +40,11 @@ def jedi-enable-autocomplete %{ echo 'completing...' jedi-complete } } + alias window complete jedi-complete } def jedi-disable-autocomplete %{ set window completers %sh{ echo "'${kak_opt_completers}'" | sed -e 's/option=jedi_completions://g' } rmhooks window jedi-autocomplete + unalias window complete jedi-complete }