diff --git a/programs/emacs/default.nix b/programs/emacs/default.nix index 238033c..02674c6 100644 --- a/programs/emacs/default.nix +++ b/programs/emacs/default.nix @@ -1,7 +1,7 @@ -{ pkgs, lib, ... }: +{ pkgs, ... }: -let - packagesNeeded = with pkgs; [ +{ + home.packages = with pkgs; [ # CORE git emacs @@ -24,27 +24,10 @@ let ledger # for accounting and org-ledger gzip # Otherwise random errors occur from the onChange script ]; -in -{ - home.packages = packagesNeeded; # Neatly place the configuration files for doom in their right place. xdg.configFile."doom" = { source = ./doom; recursive = true; - - onChange = # sh - '' - # Need to set this so DOOM can find all binaries. - export PATH="${lib.strings.concatMapStrings (x: x + "/bin:") packagesNeeded}$PATH" - - if [ ! -d "$HOME/.emacs.d" ]; then - git clone https://github.com/hlissner/doom-emacs $HOME/.emacs.d - $HOME/.emacs.d/bin/doom install - else - # Needed to apply the configuration changes. - $HOME/.emacs.d/bin/doom sync - fi - ''; }; } diff --git a/programs/emacs/doom/init.el b/programs/emacs/doom/init.el index eefc4d6..20ce4a8 100644 --- a/programs/emacs/doom/init.el +++ b/programs/emacs/doom/init.el @@ -77,7 +77,7 @@ :term ;;eshell ; the elisp shell that works everywhere ;;shell ; simple shell REPL for Emacs - ;;term ; basic terminal emulator for Emacs + term ; basic terminal emulator for Emacs ;;vterm ; the best terminal emulation in Emacs :checkers