summaryrefslogtreecommitdiff
path: root/rc/filetype/makefile.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/makefile.kak
parent6092852640096c777f700cf669666504b10e2a58 (diff)
Modified a bunch of language support files to use modules
Diffstat (limited to 'rc/filetype/makefile.kak')
-rw-r--r--rc/filetype/makefile.kak8
1 files changed, 8 insertions, 0 deletions
diff --git a/rc/filetype/makefile.kak b/rc/filetype/makefile.kak
index 569d51f9..c6f13dfd 100644
--- a/rc/filetype/makefile.kak
+++ b/rc/filetype/makefile.kak
@@ -5,6 +5,12 @@ hook global BufCreate .*(/?[mM]akefile|\.mk) %{
set-option buffer filetype makefile
}
+hook -once global BufSetOption filetype=makefile %{
+ require-module makefile
+}
+
+provide-module makefile %{
+
# Highlighters
# ‾‾‾‾‾‾‾‾‾‾‾‾
@@ -58,3 +64,5 @@ hook global WinSetOption filetype=makefile %{
hook window InsertChar \n -group makefile-indent makefile-indent-on-new-line
hook -once -always window WinSetOption filetype=.* %{ remove-hooks window makefile-.+ }
}
+
+}