From 6c6359de930ec83d1068eccaaf88880dc6aa5b2e Mon Sep 17 00:00:00 2001 From: greduan Date: Sun, 25 Sep 2016 15:15:07 +0200 Subject: Add highlight group to highlighters addhl hooks --- rc/core/python.kak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rc/core/python.kak') diff --git a/rc/core/python.kak b/rc/core/python.kak index 37d72e6e..29a92fec 100644 --- a/rc/core/python.kak +++ b/rc/core/python.kak @@ -69,8 +69,9 @@ def -hidden _python_indent_on_new_line %{ # Initialization # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾ +hook -group python-highlight global WinSetOption filetype=python %{ addhl ref python } + hook global WinSetOption filetype=python %{ - addhl ref 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 } } -- cgit v1.2.3