{ config, lib, pkgs, materusPkgs, ... }: let cfg = config.materus.profile.editor.emacs; in { options.materus.profile.editor.emacs.enable = materusPkgs.lib.mkBoolOpt false "Enable emacs with materus cfg"; config = lib.mkIf cfg.enable { #TODO: Make config /*home.activation.doomEmacs = lib.hm.dag.entryBetween [ "onFilesChange" ] [ "writeBoundry" ] '' if [ ! -d ~/.emacs.d ] ; then ${pkgs.git}/bin/git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d fi PATH="${config.programs.git.package}/bin:${config.programs.emacs.package}/bin:$PATH" ~/.emacs.d/bin/doom sync ''; home.file.doomEmacs.source = "${materusArg.flakeData.extraFiles}/config/emacs/doom"; home.file.doomEmacs.target = "${config.xdg.configHome}/doom";*/ programs.emacs.enable = true; programs.emacs.package = with pkgs; lib.mkDefault (if pkgs ? emacsUnstablePgtk then emacsUnstablePgtk else emacs-gtk); }; }