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
|
||||
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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue