configs/gui: set EDITOR to emacs

This commit is contained in:
Aaron Bieber 2024-07-31 10:41:48 -06:00
parent 730fec96bb
commit 5fd3ce71ac
No known key found for this signature in database

View File

@ -16,6 +16,14 @@ let
rpr = rpr =
pkgs.writeScriptBin "rpr" pkgs.writeScriptBin "rpr"
(import ../bins/rpr.nix { inherit (pkgs) hut gh tea; }); (import ../bins/rpr.nix { inherit (pkgs) hut gh tea; });
editorScript = pkgs.writeShellScriptBin "emacseditor" ''
if [ -z "$1" ]; then
exec ${myEmacs}/bin/emacsclient --create-frame --alternate-editor ${myEmacs}/bin/emacs
else
exec ${myEmacs}/bin/emacsclient --alternate-editor ${myEmacs}/bin/emacs "$@"
fi
'';
jobs = [ jobs = [
]; ];
fontSet = with pkgs; [ fontSet = with pkgs; [
@ -86,6 +94,7 @@ with lib; {
SSH_AUTH_SOCK = "$HOME/.traygent"; SSH_AUTH_SOCK = "$HOME/.traygent";
OLLAMA_HOST = "https://ollama.otter-alligator.ts.net"; OLLAMA_HOST = "https://ollama.otter-alligator.ts.net";
}; };
variables.EDITOR = mkOverride 900 "emacseditor";
systemPackages = with pkgs; (xinlib.filterList [ systemPackages = with pkgs; (xinlib.filterList [
alacritty alacritty
(aspellWithDicts (dicts: with dicts; [ en en-computers es de ])) (aspellWithDicts (dicts: with dicts; [ en en-computers es de ]))
@ -107,6 +116,7 @@ with lib; {
zeal zeal
myEmacs myEmacs
editorScript
(callPackage ../configs/helix.nix { }) (callPackage ../configs/helix.nix { })
]); ]);
}; };