Documentation Index
Fetch the complete documentation index at: https://docs.jylhis.com/llms.txt
Use this file to discover all available pages before exploring further.
Launching Emacs
Jotain supports three launch patterns. Pick the one that matches the task — they’re complementary, not alternatives.One-shot
A freshemacs process every time. Loads the full Jotain config; pays
package-init cost on every launch.
just bench runs. Avoid for day-to-day
editing — the startup cost adds up.
Daemon + client
Start Emacs once as a server; reuse it via lightweight clients. The first frame is slow; every frame after is instant.In the repo (development)
just daemon blocks; run it in another terminal (or under tmux) and
connect with just client / just client-tty from elsewhere. Each
client passes an --alternate-editor fallback that spawns a fresh
Emacs with --init-directory=<repo>, so isolation from ~/.emacs.d
is preserved even when the daemon isn’t running yet.
Stop the daemon with C-c in its terminal, or from any client:
As an installed user (home-manager)
Theservices.jotain module ships:
- A systemd user service (Linux) or launchd agent (macOS) that runs
emacs --fg-daemon. Enabled viaservices.jotain.startWithUserSession. jotain-editor—emacsclient --ttywith a-nwfallback. Set as$EDITORwhenservices.jotain.defaultEditor = true.jotain-visual—emacsclient --create-frame. Set as$VISUAL.- A
.desktopentry (jotain-client.desktop) for launching a GUI client from your application menu, enabled byservices.jotain.client.enable.
Shell aliases
Inspired by Rahul Juliato’s launching-emacs-terminal post, the module can install short aliases for the daemon and clients:| Alias | Expands to |
|---|---|
emd | emacs --fg-daemon (wrapped) |
em | jotain-editor (emacsclient --tty) |
emg | jotain-visual (emacsclient -c) |
programs.bash.shellAliases,
programs.zsh.shellAliases, and programs.fish.shellAliases — pick
up whichever shell home-manager already manages.
Quick edit (-Q -nw)
When you need a stripped-down Emacs — editing /etc/hosts over SSH,
fixing a typo in a 200 MB log file, demonstrating something with no
muscle-memory key bindings — bypass Jotain entirely:
-Q skips early-init.el, init.el, site-lisp, and ~/.emacs.d/;
-nw keeps it in the current terminal; the wombat theme line is the
one concession to readability on dark terminals.
To get the same effect outside the repo, add an alias to your shell:
Which one to use
| Situation | Use |
|---|---|
| First-time setup, CI, benchmarking | just run |
| Day-to-day editing, fast frame opens | daemon + em/emg |
| Sysadmin SSH session, ad-hoc edit | just quick |
| Debugging a config regression | just debug |