.emacs.d

the most bloated Emacs config on this planet
git clone https://git.trogloxene.org/.emacs.d.git
Log | Files | Refs

commit 7a7df0338246e1405c27170f10e6c92637f6025a
parent 23fdd4cb8126195f674c4f63115d143ba6423910
Author: andsy10 <andsy1016@gmail.com>
Date:   Wed, 29 Jul 2026 07:59:15 +0800

Replace eat with ghostel terminal emulator

Diffstat:
Mlisp/init-base.el | 2+-
Mlisp/init-kbd.el | 22+++++++++-------------
Mlisp/init-package.el | 36++++++++++++++----------------------
Mlisp/init-ui.el | 5-----
Mlisp/init-window.el | 2+-
5 files changed, 25 insertions(+), 42 deletions(-)

diff --git a/lisp/init-base.el b/lisp/init-base.el @@ -131,7 +131,7 @@ (name . "^\\*\\[D\\] FILE backlinks for"))) ("Shell" (or (mode . eshell-mode) - (mode . eat-mode) + (mode . ghostel-mode) (mode . vterm-mode))) ("Scripts" (or (mode . shell-script-mode) diff --git a/lisp/init-kbd.el b/lisp/init-kbd.el @@ -83,8 +83,8 @@ (general-def :prefix "C-x p" "b" 'consult-project-buffer - "E" 'eat-project "r" 'my-consult-grep-project + "t" 'ghostel-project "R" 'project-query-replace-regexp "v" 'magit-project-status "V" 'project-vc-dir @@ -156,7 +156,7 @@ (general-def :prefix "C-c x" "e" 'eshell - "E" 'eat + "t" 'ghostel "p" 'proced "b" 'benchmark-init/show-durations-tree "B" 'benchmark-init/show-durations-tabulated @@ -211,18 +211,14 @@ "C-p" 'sly-previous-note "C-n" 'sly-next-note) -;; vterm -(general-def vterm-mode-map +;; ghostel +(general-def (ghostel-mode-map + ghostel-semi-char-mode-map + ghostel-line-mode-map) "M-]" nil - "C-q" 'vterm-send-next-key) - -;; eat -(general-def (eat-semi-char-mode-map - eat-line-mode-map - eat-char-mode-map - eat-eshell-semi-char-mode-map - eat-eshell-char-mode-map) - "M-[" nil + "C-q" 'ghostel-send-next-key) + +(general-def ghostel-char-mode-map "M-]" nil) ;; embark diff --git a/lisp/init-package.el b/lisp/init-package.el @@ -80,28 +80,20 @@ _a_ : all dwim :repo "https://git.trogloxene.org/consult-jinx.git"))) ;; terminal emulator -(unless *is-windows* - (use-package eat - :straight - (eat :type git - :host codeberg - :repo "akib/emacs-eat" - :files ("*.el" - ("term" "term/*.el") - "*.texi" - "*.ti" - ("terminfo/e" "terminfo/e/*") - ("terminfo/65" "terminfo/65/*") - ("integration" "integration/*") - (:exclude ".dir-locals.el" "*-tests.el"))) - :hook - (eshell-load . eat-eshell-mode) - (eshell-load . eat-eshell-visual-command-mode) - (eat-mode . toggle-truncate-lines) - :config - (setq eat-term-terminfo-directory eat--terminfo-path))) +(use-package ghostel + :hook + (eshell-load . ghostel-eshell-visual-command-mode) + (ghostel-mode . (lambda () (cns-mode -1))) + :config + (setq eshell-destroy-buffer-when-process-dies t) + (defalias 'eshell/v 'eshell/ghostel)) + +;; eshell-syntax-highlighting +(use-package eshell-syntax-highlighting + :hook + (eshell-mode . eshell-syntax-highlighting-global-mode)) -;; wordspace +;; workspace (use-package perspective :bind ("C-x M-b" . persp-list-buffers) @@ -151,7 +143,7 @@ _a_ : all dwim (setq project-switch-commands (seq-uniq (append project-switch-commands '((magit-project-status "Magit" ?v) - (eat-project "Eat" ?E) + (ghostel-project "Ghostel" ?t) (project-query-replace-regexp "Query Replace" ?R) (consult-grep "Grep" ?r) (consult-project-buffer "Buffers" ?b) diff --git a/lisp/init-ui.el b/lisp/init-ui.el @@ -59,11 +59,6 @@ :hook (after-init . simple-modeline-mode))) -;; eshell-syntax-highlighting -(use-package eshell-syntax-highlighting - :hook - (eshell-mode . eshell-syntax-highlighting-global-mode)) - ;; indent-bars (use-package indent-bars :custom diff --git a/lisp/init-window.el b/lisp/init-window.el @@ -71,7 +71,7 @@ "^\\*shell.*\\*.*$" shell-mode "^\\*terminal.*\\*.*$" term-mode "^\\*vterm.*\\*.*$" vterm-mode - "^\\*eat.*\\*.*$" eat-mode + "^\\*ghostel.*\\*.*$" ghostel-mode "\\*DAP Templates\\*$" dap-server-log-mode "\\*ELP Profiling Restuls\\*" profiler-report-mode