emacs: drop eshell configuration
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: