nixos/pkgs/pkgsets/emacs/latex.nix
derped 8295a87aa8
emacs: Add fcitx, latex and web mode.
Lilim/emacs: Change enabled packages.
2020-01-26 18:06:39 +01:00

27 lines
504 B
Nix

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