multi-ghostel
Directory-scoped terminal reuse and a toggleable dedicated window for ghostel in Emacs.
multi-ghostel is a small Emacs package that ports the parts of multi-vterm
I actually use to ghostel
. Most of multi-vterm already ships with ghostel, so this only adds what is missing.
What it adds
- Directory-scoped reuse:
multi-ghostel-cwdkeys offdefault-directory(followingcdvia OSC 7), so each directory gets one reusable terminal. - An always-new command:
multi-ghostelstarts a fresh session, matching multi-vterm’s behaviour instead of reusing ghostel’s buffer. - A dedicated window: toggle, open, close and focus a single terminal window without killing the shell running in it.
Why a separate package
ghostel is a vterm alternative built on the same idea (a real terminal inside Emacs). Rather than fork either project, this package composes the existing ghostel primitives with the multi-vterm workflow: one command to reuse a terminal per project, one to force a new one, and one to get a scratch terminal out of the way and back.
Install
Emacs 29 ships package-vc-install:
commonlisp
(package-vc-install "https://github.com/bismigel/multi-ghostel")Or with use-package:
commonlisp
(use-package multi-ghostel
:vc (:url "https://github.com/bismigel/multi-ghostel")
:bind (("C-c t" . multi-ghostel-cwd)
("C-c T" . multi-ghostel)
("C-`" . multi-ghostel-dedicated-toggle)))The source and suggested keybindings live on GitHub .