all repos — nixfiles @ 38a83ce7a43c2f9f11af3432991408c29ebebf97

System and user configuration, managed by nix and home-manager

emacs: drop eshell configuration

Alin
commit

38a83ce7a43c2f9f11af3432991408c29ebebf97

parent

9d1c61de41d6984ce048543e0543fd5deae74345

2 files changed, 0 insertions(+), 55 deletions(-)

changed files
D user/modules/eshell.nix
@@ -1,32 +0,0 @@
-{ - config, - lib, - ... -}: -with lib; -let - cfg = config.programs.emacs; -in -{ - options.programs.emacs.eshell = { - aliases = mkOption { - default = { }; - type = types.attrsOf types.str; - example = { - ll = "ls -l $*"; - ff = "find-file $1"; - }; - description = '' - An attribute set that maps aliases (the top-level attribute names - in this option) to command strings. - ''; - }; - }; - - config = mkIf cfg.enable { - xdg.configFile."emacs/eshell/alias" = { - recursive = true; - text = concatStringsSep "\n" (mapAttrsToList (k: v: "alias ${k} ${v}") cfg.eshell.aliases); - }; - }; -}
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -22,10 +22,6 @@ fi
''; in { - imports = [ - ../modules/eshell.nix - ]; - programs.git.attributes = [ "*.el diff=elisp" ];
@@ -41,25 +37,6 @@ };
programs.emacs = { enable = true; package = lib.mkDefault (if stdenv.isLinux then pkgs.emacs-gtk else pkgs.emacs); - - eshell = { - aliases = { - pk = "eshell-up-pk $1"; - up = "eshell-up $1"; - - ec = "find-file $1"; - - l = "ls $*"; - la = "ls -A $*"; - ll = "ls -lh $*"; - lla = "ls -lhA $*"; - - http = "xh"; - https = "xh --default-scheme https $*"; - - cdg = "cd (project-root)"; - }; - }; extraPackages = epkgs: