From 67a8e8ca3c342e49a4f43353a55c11caf81e0848 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Fri, 14 Oct 2016 19:16:45 +0300 Subject: Remove all references to `formatcmd` Initializing the `formatcmd` variable in the default language support scripts created a dependency to the `formatter.kak` script, which we do not want. Examples of such cases are when users haven't loaded the `formatter.kak` script, or when Kakoune runs its test suite and selectively loads some language scripts for testing purposes. --- rc/core/python.kak | 2 -- 1 file changed, 2 deletions(-) (limited to 'rc/core/python.kak') diff --git a/rc/core/python.kak b/rc/core/python.kak index 69da651a..42d9d449 100644 --- a/rc/core/python.kak +++ b/rc/core/python.kak @@ -75,8 +75,6 @@ hook global WinSetOption filetype=python %{ hook window InsertChar \n -group python-indent _python_indent_on_new_line # cleanup trailing whitespaces on current line insert end hook window InsertEnd .* -group python-indent %{ try %{ exec -draft \; s ^\h+$ d } } - - set window formatcmd "autopep8 -" } hook -group python-highlight global WinSetOption filetype=(?!python).* %{ rmhl python } -- cgit v1.2.3