system changes
This commit is contained in:
parent
489a3f7a75
commit
14d97467fa
1 changed files with 9 additions and 0 deletions
|
@ -314,12 +314,21 @@ Install and configure =eat= as a terminal emulator in Emacs.
|
||||||
(use-package eat
|
(use-package eat
|
||||||
:init
|
:init
|
||||||
(setopt eat-kill-buffer-on-exit t)
|
(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
|
:config
|
||||||
(eat-eshell-mode)
|
(eat-eshell-mode)
|
||||||
(setq eshell-visual-commands '())
|
(setq eshell-visual-commands '())
|
||||||
:hook
|
:hook
|
||||||
(eat-mode . (lambda () (display-line-numbers-mode -1)))
|
(eat-mode . (lambda () (display-line-numbers-mode -1)))
|
||||||
(eshell-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 "ll" "ls -alF $@*")
|
||||||
(eshell/alias "la" "ls -a $@*")
|
(eshell/alias "la" "ls -a $@*")
|
||||||
(eshell/alias "l" "ls -F $@*")))
|
(eshell/alias "l" "ls -F $@*")))
|
||||||
|
|
Loading…
Add table
Reference in a new issue