Skip to content

improved emacsclient launch function#13

Merged
ajjackson merged 3 commits into
mainfrom
better-fish-em
Jun 3, 2026
Merged

improved emacsclient launch function#13
ajjackson merged 3 commits into
mainfrom
better-fish-em

Conversation

@ajjackson

Copy link
Copy Markdown
Owner

The main requirement for this is to avoid messy situations if I instintively "em" while inside an emacs vterm. Nested emacs instances are not nice, instead this should jump to existing (outer) emacs.

Currently there are some rough corners:

  • if TUI and GUI are both open, sometimes vterm->em from TUI opens in GUI instead

  • other programs using EDITOR don't expect/like this to be a fish function.

@ajjackson

Copy link
Copy Markdown
Owner Author

We can see in the test failure here the regression in emacs package setup. These functions didn't previously need explicit loading into namespace... Somehow autoload broke? #12 fixes this but not very nicely.

The main requirement for this is to avoid messy situations if I
instintively "em" while inside an emacs vterm. Nested emacs instances
are not nice, instead this should jump to existing (outer) emacs.

Currently there are some rough corners:
- if TUI and GUI are both open, sometimes vterm->em from TUI opens
  in GUI instead

- other programs using EDITOR don't expect/like this to be a fish function.
@ajjackson ajjackson marked this pull request as ready for review June 3, 2026 19:02
@ajjackson

Copy link
Copy Markdown
Owner Author

Seems to work in TUI but not really in GUI. Ah well, it's progress.

ajjackson added 2 commits June 3, 2026 21:08
This creates a risk of file contention but allows independent themes etc.
@ajjackson

Copy link
Copy Markdown
Owner Author

Rough corners addressed:

  • TUI and GUI have separate servers. They might occasionally need to steal files from each other, but that shouldn't be too bad.
  • Fish function is now in a script file so EDITOR is fine.

@ajjackson ajjackson merged commit 6c2679a into main Jun 3, 2026
1 check passed
@ajjackson ajjackson changed the title WIP improved emacsclient launch function improved emacsclient launch function Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant