emacs: remove onChange and add term module
This commit is contained in:
parent
6190509d0a
commit
6874f7fe05
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
{
|
||||||
packagesNeeded = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# CORE
|
# CORE
|
||||||
git
|
git
|
||||||
emacs
|
emacs
|
||||||
|
@ -24,27 +24,10 @@ let
|
||||||
ledger # for accounting and org-ledger
|
ledger # for accounting and org-ledger
|
||||||
gzip # Otherwise random errors occur from the onChange script
|
gzip # Otherwise random errors occur from the onChange script
|
||||||
];
|
];
|
||||||
in
|
|
||||||
{
|
|
||||||
home.packages = packagesNeeded;
|
|
||||||
|
|
||||||
# Neatly place the configuration files for doom in their right place.
|
# Neatly place the configuration files for doom in their right place.
|
||||||
xdg.configFile."doom" = {
|
xdg.configFile."doom" = {
|
||||||
source = ./doom;
|
source = ./doom;
|
||||||
recursive = true;
|
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
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
:term
|
:term
|
||||||
;;eshell ; the elisp shell that works everywhere
|
;;eshell ; the elisp shell that works everywhere
|
||||||
;;shell ; simple shell REPL for Emacs
|
;;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
|
;;vterm ; the best terminal emulation in Emacs
|
||||||
|
|
||||||
:checkers
|
:checkers
|
||||||
|
|
Loading…
Reference in a new issue