diff options
| author | greduan <me@greduan.com> | 2016-09-25 15:15:07 +0200 |
|---|---|---|
| committer | greduan <me@greduan.com> | 2016-09-28 08:25:02 +0200 |
| commit | 6c6359de930ec83d1068eccaaf88880dc6aa5b2e (patch) | |
| tree | f9ae1945a3d9e684ce1858dd86932f2f36a6f20f /rc/core/python.kak | |
| parent | 0d5a1ddf4c4060871b060fd6607823e4e9831bbf (diff) | |
Add highlight group to highlighters addhl hooks
Diffstat (limited to 'rc/core/python.kak')
| -rw-r--r-- | rc/core/python.kak | 3 |
1 files changed, 2 insertions, 1 deletions
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 \; <a-x> s ^\h+$ <ret> d } } |
