diff --git a/modules/home/users/crumb/emacs.nix b/modules/home/users/crumb/emacs.nix index 409813c..76d97aa 100755 --- a/modules/home/users/crumb/emacs.nix +++ b/modules/home/users/crumb/emacs.nix @@ -37,6 +37,20 @@ in { en en-computers en-science ]); + my-tex = pkgs.texlive.combine { + inherit (pkgs.texlive) + scheme-basic # Set of common packages. + fontspec + dvisvgm dvipng wrapfig # For Org-mode previews/export. + amsmath # Essential for mathematics. + ulem hyperref + capt-of + pgf # Includes TikZ. + tikz-cd # Commutative diagrams w/ TikZ. + metafont + ; + }; + my-emacs = let ewp = (pkgs.emacsPackagesFor emacsBasePackage).emacsWithPackages (epkgs: with epkgs; [ @@ -52,6 +66,7 @@ in { pkgs.git # Dependency of Straight.el. my-aspell pkgs.direnv + pkgs.ghostscript # For TeX. ]; postBuild = '' find "$out/bin" -name emacs -or -name "emacs-*" \ @@ -65,7 +80,7 @@ in { --prefix PATH : "${pkgs.git}/bin" \ --prefix PATH : "${my-aspell}/bin" \ --prefix PATH : "${pkgs.direnv}/bin" \ - --prefix PATH : "${pkgs.texliveFull}/bin" \ + --prefix PATH : "${my-tex}/bin" \ --set ASPELL_CONF "dict-dir ${my-aspell}/lib/aspell" done '';