-
Notifications
You must be signed in to change notification settings - Fork 49
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
Not working with the Emacs Mac Port? #30
Comments
@ylluminarious Thank you for creating an issue for this! We are two weeks into this project and it is still very immature . It does just enough to work in some environments. I'm going to try to release v1.1 in the next week. It should fix a majority of the issues we've seen thus far as well as add some helpful runtime error messages and debugging/verification upon install. I'll add an issue for this soon so we can talk about what should be included in the release. I'll put the changes in a new branch we can test against. In the meantime, the best way to debug would be to $ cd ~/.emacs_anywhere/bin
$ ./run |
@zachcurry Great, thanks for the info! |
similarly, emacs-mac works when run directly from repo, but seemingly not via shortcut (sometimes does nothing, sometimes shows gear but does nothing, sometimes pastes from clipboard without opening emacs ?). nonetheless, v exciting! |
Seconding @meereeum. I am able to run using |
@ylluminarious, @meereeum, @m-cat, I have a new PR up that does some checks on install and may provide some helpful debugging. Also, I have removed some code that modified the PATH variable when run via the shortcut. Perhaps this change will resolve your issue(s)! |
Thanks @zachcurry! Unfortunately, it still doesn't work for me. Output from installation:
It still pastes from the clipboard when run via shortcut. I really hope we can resolve this, can't wait to use it :) |
@m-cat Thanks! I'm going to get the bottom of this as quickly as I can. |
fwiw, i got a fork of https://github.com/meereeum/vim-anywhere [ this comment written in spacemacs ] |
Siiick @meereeum ! I posted my intention of adding environment configuration to the project in another thread since we've had issues with Automator invoking shell scripts with unprepared PATH variables. As well as allowing the user to configure the degree to which the tool automates their task (i.e. copying text upon invocation). I like the way you've set up this var. It looks like I could take the same approach and just concatenate the the eval option with the elisp onto the end! Thanks! I had a quick glance at one of the commits and I can see that vim-anywhere uses a temp file instead of a new buffer. I'm already needing to use a temp file for the Linux implementation to workaround bugs in the Linux support for GNU Emacs. I wonder if I should just give up the ghost and use temp files instead 🤔 @meereeum let me know if you have the extra time, or desire to work on this project and I'll add you as collaborator. |
@ylluminarious @m-cat @meereeum I'm 90% sure this will fix your issue(s) since the problem seems to be getting Emacs to launch... Get the latest from master curl -fsSL https://raw.github.com/zachcurry/emacs-anywhere/master/install | bash Add the second line below the comment in # Your configs go here
export EA_EDITOR="/path/to/your/emacsclient -a '' -c" |
I'm afraid it still doesn't work for me. I put the following in
But I'm still seeing the behavior of pasting from clipboard. If I run |
@m-cat If the keyboard shortcut was set properly in System Preferences I can't imagine what the problem could be. Does your version of emacs support the -e option? The only thing the app does is tack a -e option onto your config. The last thing I can suggest is to make sure you don't have any zombie Emacs processes running and to start the server like this emacs --daemon. In fact, you may just want to restart your machine to make sure before you run emacs as a daemon. Beyond this and checking the README again I'm out of ideas. Oh wait! You could try to debug it with this Good luck! |
Thanks for the reply. Going through your comment in order:
I tried several different shortcuts so I don't think this is it. And if I understand it correctly, since the clipboard is pasted, then the shortcut must work, but emacs_anywhere fails to start for some reason. Is that right?
How do I check this?
This didn't work, even on a fresh restart with no apps running. :(
This starts Emacs in the terminal and displays
Thanks again for the help -- I've done a lot of tweaking to my system before so it's possible this just won't work for me. |
This is a bummer @m-cat! Perhaps later down the road we’ll have something that just works for everybody. I’ll keep this in mind and ping you when I’ve got something that might work. Thanks for being so patient 👍 |
Update: looks like it's working for me now. Thanks @zachcurry, this is awesome! For anyone with the same problem: I don't know exactly what fixed my issue, but here's something you can try. I used the app |
@zachcurry @m-cat I haven't been following the conversation very closely, but I appreciate the work that has been done here. Thank you guys! As per @m-cat's above comment, I decided to try this out again, but I receive the following error in a system popup whenever I run Emacs Anywhere via the keyboard shortcut:
Anybody have a clue as to what may be going wrong? |
@ylluminarious what is your Emacs version? Also, did you set
(I installed Emacs as an app from https://emacsformacosx.com/). You may be running an out of date |
@m-cat I'm running:
Also note that this is the Emacs Mac Port by Yamamoto Mitsuharu. I added the same code to my |
@m-cat @ylluminarious Emacs Anywhere has been completely reimplemented! Have a look at the README. Configuring the editor is done differently now, so read that part closely. A bunch of people have used this version and I’ve had zero bug tickets. Besides, the new version has some cool features 😎 If you have any questions, I’m here. |
I'm actually a bit confused by that part. I see there is a new command and lots of new variables but where do I put these? My |
@m-cat you can define the path to the editor by placing this statement in your ~/.bash_profile
Advanced usage via elisp will allow you to configure your frame to do whatever you want based on the values you find in the variables. If you check out the "Examples" section of the README you will see how you can use a function and the hook provided to achieve this, but it's just an optional way to extend the behavior of an Emacs Anywhere session. If you use init.el for your configuration then put your code there. I use Spacemacs, so my code is in my .spacemacs file. As long as the code is run when the server starts it will work. I hope that helps. If you read something in the README that doesn't make sense or, if you run into trouble I'll be here. |
@zachcurry Awesome! That does the trick and I can actually use Emacs Anywhere now. I'll definitely have to consider customizing it and seeing what I can do to configure everything :) Thank you! |
@ylluminarious my pleasure! Thanks for hanging in there 😄 |
As per the discussion at #8, I tried this with the Emacs Mac Port and it seems that nothing happens. There is a little gear icon in the menu bar for a moment, but then nothing happens and the gear icon disappears. Is there a log file somewhere which could give a clue as to what's going wrong?
The text was updated successfully, but these errors were encountered: