2022-01-12 22:21:36 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
kaktexScript = ./kaktex;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
# Create kak-tex executable
|
|
|
|
home.file.kaktex = {
|
|
|
|
source = kaktexScript;
|
|
|
|
executable = true;
|
|
|
|
target = ".bin/kaktex";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Source kaktex whenever we have a tex file
|
|
|
|
programs.my-kakoune.rc = ''
|
|
|
|
hook global WinSetOption filetype=(tex|latex) %{
|
2022-01-12 23:17:05 +00:00
|
|
|
hook window WinDisplay '.*' %{
|
2022-01-12 22:21:36 +00:00
|
|
|
eval %sh{
|
|
|
|
${kaktexScript} set $kak_client $kak_session
|
|
|
|
}
|
2022-01-12 23:17:05 +00:00
|
|
|
}
|
2022-01-12 22:21:36 +00:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|