Build custom version of Emacs to include both PGTK and Imagemagick support

Install Emacs by default instead just for desktop environment
This commit is contained in:
Evie Litherland-Smith 2024-11-14 13:50:55 +00:00 committed by Evie Litherland-Smith
parent 07ebae0855
commit 333e41f926
3 changed files with 10 additions and 11 deletions

View file

@ -136,6 +136,7 @@
./home/shell/default.nix
./home/scripts/default.nix
./home/password-store/default.nix
./home/emacs/default.nix
];
home = {
inherit username;

View file

@ -120,11 +120,10 @@
{
imports = [
./home/hyprland.nix
./home/terminal/default.nix
./home/browser/default.nix
./home/email/default.nix
./home/calendar/default.nix
./home/terminal/default.nix
./home/emacs/default.nix
./home/browser/default.nix
];
home.file.${config.gtk.gtk2.configLocation}.force = true;
services = {

View file

@ -17,7 +17,10 @@
programs.emacs = {
# Clone emacs config from https://git.xenia.me.uk/pixelifytica/emacs.git
enable = true;
package = pkgs.emacs29-pgtk;
package = pkgs.emacs29.override {
withImageMagick = true;
withPgtk = true;
};
extraConfig =
let
fixed-font-family = "${config.stylix.fonts.monospace.name}";
@ -62,19 +65,15 @@
];
};
home.packages = with pkgs; [
# Emacs requirements
imagemagick
languagetool
wordnet
# Plugin requirements
gcc
sqlite
languagetool
wordnet
pandoc
ghostscript
poppler_utils
graphviz
mp3info
graphviz-nox
# Customised LaTeX install
(texlive.combine {