From bec0ff0fa0737dfeaeb08536ca9b16103c4acb51 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 18 Nov 2014 13:55:52 +0000 Subject: [PATCH] Use a 'complete' alias for file type specific completer --- rc/clang.kak | 2 ++ rc/jedi.kak | 2 ++ 2 files changed, 4 insertions(+) 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 }