diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-30 10:07:23 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-30 10:07:23 -0700 |
| commit | d9028787370ce62baa78818999aaa4030e814cc6 (patch) | |
| tree | 339dc85302533b63af8cdbcd80a32a21b4ad5d36 /home | |
| parent | switch to nginx (diff) | |
| download | infra-d9028787370ce62baa78818999aaa4030e814cc6.tar.gz | |
move eshell configuration to its own file
Diffstat (limited to 'home')
| -rw-r--r-- | home/programs/emacs/default.nix | 1 | ||||
| -rw-r--r-- | home/programs/emacs/init.el | 19 | ||||
| -rw-r--r-- | home/programs/emacs/site-lisp/init-eshell.el | 34 |
3 files changed, 36 insertions, 18 deletions
diff --git a/home/programs/emacs/default.nix b/home/programs/emacs/default.nix index b657bca..1403980 100644 --- a/home/programs/emacs/default.nix +++ b/home/programs/emacs/default.nix @@ -55,6 +55,7 @@ let "init.el" "site-lisp/init-base.el" "site-lisp/init-completion.el" + "site-lisp/init-eshell.el" "site-lisp/init-programming.el" "site-lisp/init-text.el" "site-lisp/init-ui.el" diff --git a/home/programs/emacs/init.el b/home/programs/emacs/init.el index e803900..5afbbeb 100644 --- a/home/programs/emacs/init.el +++ b/home/programs/emacs/init.el @@ -16,6 +16,7 @@ (require 'init-completion) (require 'init-text) (require 'init-programming) +(require 'init-eshell) (use-package server :config @@ -23,24 +24,6 @@ (unless (server-running-p) (server-start))) -(use-package eshell - :commands (eshell eshell-command) - :bind (("C-r" . consult-history)) - :custom - (eshell-hist-ignoredups t) - (eshell-history-size 50000) - (eshell-ls-dired-initial-args '("-h")) - (eshell-ls-initial-args "-h") - (eshell-ls-exclude-regexp "~\\'") - (eshell-save-history-on-exit t) - (eshell-stringify-t nil) - (eshell-term-name "ansi")) - -(eshell/alias "ls" "eza $*") -(eshell/alias "la" "eza -la $*") -(eshell/alias "ll" "eza -la -L=1 $*") -(eshell/alias "lt" "eza -aT -L=2 $*") - ;;; init.el ends here ;; byte-compile-warnings: (not docstrings lexical noruntime) ;; End: diff --git a/home/programs/emacs/site-lisp/init-eshell.el b/home/programs/emacs/site-lisp/init-eshell.el new file mode 100644 index 0000000..8095d90 --- /dev/null +++ b/home/programs/emacs/site-lisp/init-eshell.el @@ -0,0 +1,34 @@ +;;; init-eshell.el --- Configure things related to eshell -*- lexical-binding: t -*- +;; Author: Franck Cuny <franck@fcuny.net> + +;;; Commentary: + +;; Configure things related to eshell + +;;; Code: + +(use-package eshell + :commands (eshell eshell-command) + :bind (("C-r" . consult-history)) + :custom + (eshell-banner-message "") + (eshell-hist-ignoredups t) + (eshell-history-size 50000) + (eshell-ls-dired-initial-args '("-h")) + (eshell-ls-initial-args "-h") + (eshell-ls-exclude-regexp "~\\'") + (eshell-save-history-on-exit t) + (eshell-stringify-t nil) + (eshell-term-name "ansi") + :config + (require 'em-alias) + (eshell/alias "ls" "eza --group-directories-first $*") + (eshell/alias "la" "eza --group-directories-first -la $*") + (eshell/alias "ll" "eza --group-directories-first -la -L=1 $*") + (eshell/alias "lt" "eza --group-directories-first -aT -L=2 $*") + (eshell/alias "g" "magit") + (eshell/alias "d" "dired $1")) + +(provide 'init-eshell) + +;;; init-eshell.el ends here |
