From 23d6b0ea2d632bd873b3a977229c26f4791bba0d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 5 Nov 2014 21:12:29 +0000 Subject: [PATCH] Remove clang cleanup hooks once they ran --- rc/clang.kak | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rc/clang.kak b/rc/clang.kak index 5c34ff9d..d8877b71 100644 --- a/rc/clang.kak +++ b/rc/clang.kak @@ -18,7 +18,10 @@ def clang-complete %{ edit! -fifo ${dir}/fifo *clang-output* set buffer filetype make set buffer _make_current_error_line 0 - hook buffer BufCloseFifo .* %{ nop %sh{ rm -r ${dir} } } + hook -group clang-cleanup buffer BufCloseFifo .* %{ + nop %sh{ rm -r ${dir} } + rmhooks buffer clang-cleanup + } }" # this runs in a detached shell, asynchronously, so that kakoune does not hang while clang is running. # As completions references a cursor position and a buffer timestamp, only valid completions should be