nix-home/home/kakoune/kaktex.nix

25 lines
473 B
Nix
Raw Normal View History

{ 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 '.*' %{
eval %sh{
${kaktexScript} set $kak_client $kak_session
}
2022-01-12 23:17:05 +00:00
}
}
'';
}