nixos/pkgsets/emacs/latex.nix

31 lines
550 B
Nix
Raw Normal View History

2023-09-11 20:23:04 +02:00
{
config,
lib,
pkgs,
...
}:
with lib;
2023-09-11 20:23:04 +02:00
mkIf (elem "emacs::latex" config.machine.pkgs) {
programs.emacs.init.usePackage = {
latex-mode = {
enable = true;
package = epkgs: null;
defer = true;
};
2023-09-11 20:23:04 +02:00
tex-site = {
enable = true;
defer = true;
package = epkgs: epkgs.auctex;
hook = [];
mode = [''("\\.tex\\'" . TeX-latex-mode)''];
};
2023-09-11 20:23:04 +02:00
preview = {
enable = true;
defer = true;
package = epkgs: epkgs.auctex;
};
};
2023-09-11 20:23:04 +02:00
}