diff --git a/rc/base/spell.kak b/rc/base/spell.kak index 00bcdae39..b4f7eda1a 100644 --- a/rc/base/spell.kak +++ b/rc/base/spell.kak @@ -5,7 +5,7 @@ def -params ..1 spell -docstring "Check spelling of the current buffer with aspe try %{ addhl ranges 'spell_regions' } %sh{ file=$(mktemp -d -t kak-spell.XXXXXXXX)/buffer - printf %s\\n "write ${file}" + printf %s\\n "eval -no-hooks write ${file}" printf %s\\n "set buffer spell_tmp_file ${file}" } %sh{ diff --git a/rc/extra/clang.kak b/rc/extra/clang.kak index 5f1cd9ba0..0466a7562 100644 --- a/rc/extra/clang.kak +++ b/rc/extra/clang.kak @@ -10,7 +10,7 @@ def clang-parse -params 0..1 -docstring "Parse the contents of the current buffe dir=$(mktemp -d -t kak-clang.XXXXXXXX) mkfifo ${dir}/fifo printf %s\\n "set buffer clang_tmp_dir ${dir}" - printf %s\\n "write ${dir}/buf" + printf %s\\n "eval -no-hooks write ${dir}/buf" } # end the previous %sh{} so that its output gets interpreted by kakoune # before launching the following as a background task. diff --git a/rc/extra/flake8.kak b/rc/extra/flake8.kak index d388c0cab..e8f779965 100644 --- a/rc/extra/flake8.kak +++ b/rc/extra/flake8.kak @@ -8,7 +8,7 @@ def flake8-lint -params 0..1 -docstring "Lint the contents of the current buffer dir=$(mktemp -d -t kak-flake8.XXXXXXXX) mkfifo ${dir}/fifo echo "set buffer flake8_tmp_dir ${dir}" - echo "write ${dir}/buf" + echo "eval -no-hooks write ${dir}/buf" } # end the previous %sh{} so that its output gets interpreted by kakoune diff --git a/rc/extra/jedi.kak b/rc/extra/jedi.kak index bc295fe94..61ff5c853 100644 --- a/rc/extra/jedi.kak +++ b/rc/extra/jedi.kak @@ -7,7 +7,7 @@ def jedi-complete -docstring "Complete the current selection with jedi" %{ dir=$(mktemp -d -t kak-jedi.XXXXXXXX) mkfifo ${dir}/fifo printf %s\\n "set buffer jedi_tmp_dir ${dir}" - printf %s\\n "write ${dir}/buf" + printf %s\\n "eval -no-hooks write ${dir}/buf" } %sh{ dir=${kak_opt_jedi_tmp_dir}