Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use "emacsclient -t" as EDITOR for xplr? #672

Open
oscarvarto opened this issue Oct 16, 2023 · 5 comments
Open

How can I use "emacsclient -t" as EDITOR for xplr? #672

oscarvarto opened this issue Oct 16, 2023 · 5 comments

Comments

@oscarvarto
Copy link

I can use nvim as EDITOR, as well as "emacsclient -c" (it opens a GUI window). But I'd like to use the emacsclient in a terminal (-t option). However, if I execute something like (using fish shell):

EDITOR="emacsclient -t" xplr

then I get the following error in xplr:

01:56:02|ERROR) process exited with code exit status: 1 

It is possible if I use emacs -nw as EDITOR, but it has the disadvantage of starting up another instance of emacs with the complete configuration (it takes time).
My last resort would be to fall back to nvim, but I prefer emacs.

@oscarvarto
Copy link
Author

oscarvarto commented Oct 16, 2023

If I open xplr shell (:!) and then try to execute emacsclient -t I get the following (short) error message:

*ERROR*: Could not open file: /dev/tty

The same error occurs if I am in Wayland or X11. I tried in different terminals: wezterm, kitty, alacritty. Same error.

@sayanarijit
Copy link
Owner

Hi, sorry, I don't have much experience with emacs. So I couldn't find much help. Maybe someone from the emacs community can suggest something.

@oscarvarto
Copy link
Author

@sayanarijit The above was tried in Arch Linux variant CachyOS. However, I confirm this also happens in Mac OS (Sonoma 14.1).

@oscarvarto
Copy link
Author

@sayanarijit Is there a way to execute xplr with a "debug" flag? Are there any logs saved somewhere while executing xplr?

@sayanarijit
Copy link
Owner

Not in the binary version. You may need to build from source. The process is documented.

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

No branches or pull requests

2 participants