emacs: remove onChange and add term module

This commit is contained in:
Alexandre Cavalheiro 2024-08-13 14:59:55 -03:00
parent 6190509d0a
commit 6874f7fe05
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
2 changed files with 4 additions and 21 deletions

View file

@ -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
'';
};
}

View file

@ -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