You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for creating this great package. I found it to be extremely useful, but I have encountered an issue relating to my installation.
I am using nix run (a feature from Nix flakes) to run Emacs without installing it. If you don't know nix run, think of it like docker run. It can start a program without installing its executable to a global location. emacs-everywhere tries to spawn emacsclient from inside an Emacs session, which fails, because emacsclient is unavailable in my PATH.
would work. It would be possible to handle the issue by adding a custom variable named emacs-everywhere-emacsclient-executable. It can be done quickly.
A more thorough solution, however, would be to use with-editor package developed by tarsius, the person behind magit. This package contains with-editor-locate-emacsclient function which locates emacsclient executable in a reliable manner, which will be better than the solution I showed above.
It also seems to contain helper functions for emacsclient sessions, such as with-editor-finish, with-editor-cancel, etc. Those functions might be useful to you for a more consistent behaviour. At a first glance, it doesn't look easy to rewrite your package to utilize those utilities, due to some duplicated logic between the two packages. I haven't examined the idea in detail.
What do you think? Would you consider use of with-editor package? For me, use of with-editor-locate-emacsclient would probably be sufficient, so if you can accept the extra dependency, I will submit a PR.
The text was updated successfully, but these errors were encountered:
Hello, thanks for creating this great package. I found it to be extremely useful, but I have encountered an issue relating to my installation.
I am using
nix run
(a feature from Nix flakes) to run Emacs without installing it. If you don't knownix run
, think of it likedocker run
. It can start a program without installing its executable to a global location.emacs-everywhere
tries to spawnemacsclient
from inside an Emacs session, which fails, becauseemacsclient
is unavailable in myPATH
.In my case, replacing the executable name with
would work. It would be possible to handle the issue by adding a custom variable named
emacs-everywhere-emacsclient-executable
. It can be done quickly.A more thorough solution, however, would be to use with-editor package developed by tarsius, the person behind magit. This package contains
with-editor-locate-emacsclient
function which locatesemacsclient
executable in a reliable manner, which will be better than the solution I showed above.It also seems to contain helper functions for emacsclient sessions, such as
with-editor-finish
,with-editor-cancel
, etc. Those functions might be useful to you for a more consistent behaviour. At a first glance, it doesn't look easy to rewrite your package to utilize those utilities, due to some duplicated logic between the two packages. I haven't examined the idea in detail.What do you think? Would you consider use of with-editor package? For me, use of
with-editor-locate-emacsclient
would probably be sufficient, so if you can accept the extra dependency, I will submit a PR.The text was updated successfully, but these errors were encountered: