From 1fab727f2be4be4e4b6e85887c283daf86aef722 Mon Sep 17 00:00:00 2001 From: Justin Frank Date: Tue, 12 Mar 2019 22:24:33 -0700 Subject: Modified a bunch of language support files to use modules --- rc/filetype/python.kak | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'rc/filetype/python.kak') 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 \; s ^\h+$ d } } hook -once -always window WinSetOption filetype=.* %{ remove-hooks window python-.+ } } + +} -- cgit v1.2.3