summaryrefslogtreecommitdiff
path: root/rc/filetype/latex.kak
diff options
context:
space:
mode:
authorJustin Frank <justinpfrank@protonmail.com>2019-03-13 14:00:59 -0700
committerJustin Frank <justinpfrank@protonmail.com>2019-04-08 17:05:55 -0700
commitaa6d19bee69e6a2b845553f5ba19cfe4e4cf6b12 (patch)
treee9abe822f5fd9d5cba4aa0a7e3719bf8e360a6d2 /rc/filetype/latex.kak
parent7866d88131837f7c514e73c57773185ba33beb7b (diff)
Added modules to extra files
Diffstat (limited to 'rc/filetype/latex.kak')
-rw-r--r--rc/filetype/latex.kak8
1 files changed, 8 insertions, 0 deletions
diff --git a/rc/filetype/latex.kak b/rc/filetype/latex.kak
index acb5c1fc..3b8511d1 100644
--- a/rc/filetype/latex.kak
+++ b/rc/filetype/latex.kak
@@ -8,6 +8,12 @@ hook global BufCreate .*\.tex %{
set-option buffer filetype latex
}
+hook -once global BufSetOption filetype=latex %{
+ require-module latex
+}
+
+provide-module latex %(
+
# Highlighters
# ‾‾‾‾‾‾‾‾‾‾‾‾
@@ -33,3 +39,5 @@ hook -group latex-highlight global WinSetOption filetype=latex %{
add-highlighter window/latex ref latex
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/latex }
}
+
+)