configurations: emacs, move config to org file

This commit is contained in:
2024-11-10 11:50:21 +01:00
parent 8dbe62606b
commit c390ed0977
16 changed files with 481 additions and 421 deletions
@@ -1,3 +1,4 @@
{config, pkgs, lib, ...}:
{
imports = [
@@ -6,4 +7,12 @@
./fish.nix
./starship.nix
];
home.sessionVariables = {
EDITOR = lib.mkDefault (if (config.materus.profile.editor.emacs.enable) then
lib.getBin (pkgs.writeShellScript "editor" ''${config.programs.emacs.finalPackage}/bin/emacsclient --alternate-editor= -c -nw $@'')
else "${pkgs.micro}/bin/micro");
VISUAL = lib.mkDefault (if (config.materus.profile.editor.emacs.enable) then
lib.getBin (pkgs.writeShellScript "editor-visual" ''exec env COLORTERM=truecolor ${config.programs.emacs.finalPackage}/bin/emacsclient --alternate-editor= -c $@'')
else "${pkgs.micro}/bin/micro");
};
}