diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-03-13 17:37:14 -0500 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-03-13 17:37:14 -0500 |
commit | 14d97467fa426c713b2971185446f7d44ccc27bf (patch) | |
tree | e1e0647fb3861cdddfa9ea946a21e976c13bec05 /common | |
parent | 489a3f7a7532a4a87e84436a378447db1f92deef (diff) |
system changes
Diffstat (limited to 'common')
-rw-r--r-- | common/.config/emacs/init.el.org | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/.config/emacs/init.el.org b/common/.config/emacs/init.el.org index aa64e1a..d85e112 100644 --- a/common/.config/emacs/init.el.org +++ b/common/.config/emacs/init.el.org @@ -314,12 +314,21 @@ Install and configure =eat= as a terminal emulator in Emacs. (use-package eat :init (setopt eat-kill-buffer-on-exit t) + (defun jj/eshell-quit-or-delete-char (arg) + (interactive "p") + (if (and (eolp) (looking-back eshell-prompt-regexp)) + (progn + (eshell-life-is-too-much) + (ignore-errors + (delete-window))) + (delete-forward-char arg))) :config (eat-eshell-mode) (setq eshell-visual-commands '()) :hook (eat-mode . (lambda () (display-line-numbers-mode -1))) (eshell-mode . (lambda () (display-line-numbers-mode -1) + (bind-keys :map eshell-mode-map ("C-d" . jj/eshell-quit-or-delete-char)) (eshell/alias "ll" "ls -alF $@*") (eshell/alias "la" "ls -a $@*") (eshell/alias "l" "ls -F $@*"))) |