summaryrefslogtreecommitdiff
path: root/rc/filetype/python.kak
diff options
context:
space:
mode:
authorJustin Frank <justinpfrank@protonmail.com>2019-03-12 22:24:33 -0700
committerJustin Frank <justinpfrank@protonmail.com>2019-04-08 17:02:44 -0700
commit1fab727f2be4be4e4b6e85887c283daf86aef722 (patch)
tree3cd52c6a5f4b9dc7e89284bdc01deb9899509029 /rc/filetype/python.kak
parent6092852640096c777f700cf669666504b10e2a58 (diff)
Modified a bunch of language support files to use modules
Diffstat (limited to 'rc/filetype/python.kak')
-rw-r--r--rc/filetype/python.kak8
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-.+ }
}
+
+}