2023-09-11 20:23:04 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2020-01-26 17:50:05 +01:00
|
|
|
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;
|
|
|
|
};
|
2020-01-26 17:50:05 +01:00
|
|
|
|
2023-09-11 20:23:04 +02:00
|
|
|
tex-site = {
|
|
|
|
enable = true;
|
|
|
|
defer = true;
|
|
|
|
package = epkgs: epkgs.auctex;
|
|
|
|
hook = [];
|
|
|
|
mode = [''("\\.tex\\'" . TeX-latex-mode)''];
|
|
|
|
};
|
2020-01-26 17:50:05 +01:00
|
|
|
|
2023-09-11 20:23:04 +02:00
|
|
|
preview = {
|
|
|
|
enable = true;
|
|
|
|
defer = true;
|
|
|
|
package = epkgs: epkgs.auctex;
|
|
|
|
};
|
2020-01-26 17:50:05 +01:00
|
|
|
};
|
2023-09-11 20:23:04 +02:00
|
|
|
}
|