diff options
Diffstat (limited to 'rc/filetype/python.kak')
| -rw-r--r-- | rc/filetype/python.kak | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak index 9084dd1c..82fe9971 100644 --- a/rc/filetype/python.kak +++ b/rc/filetype/python.kak @@ -8,6 +8,12 @@ hook global BufCreate .*[.](py) %{ set-option buffer filetype python } +hook -once global BufSetOption filetype=python %{ + require-module python +} + +provide-module python %{ + # Highlighters & Completion # ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ @@ -146,3 +152,5 @@ hook global WinSetOption filetype=python %{ hook window ModeChange insert:.* -group python-trim-indent %{ try %{ execute-keys -draft \; <a-x> s ^\h+$ <ret> d } } hook -once -always window WinSetOption filetype=.* %{ remove-hooks window python-.+ } } + +} |
