Giter VIP home page Giter VIP logo

Comments (5)

tarsius avatar tarsius commented on July 17, 2024

That's what emacsclient file is supposed to do, even without with-editor. If that doesn't work for you, then that probably means that you didn't start the server in the running emacs instance.

from with-editor.

deb0ch avatar deb0ch commented on July 17, 2024

emacsclient kind of does it, but if I have several instances it will always choose another one.

I wonder if there is a way to make it work seamlessly for ne and emacs commands though.

from with-editor.

tarsius avatar tarsius commented on July 17, 2024

I don't know what ne is, some wrapper script I suppose? But for emacs the answer is no, that always starts a new instance. As for emacsclient always choosing another instance: I think it always uses the instance which uses the default socket (and that's always under the control of the first instance you started). But really I don't use emacsclient except for committing with magit/with-editor, so you should ask elsewhere for help.

And to answer your original question: no, with-editor cannot help with this scenario, or be made to do so. I suspect that you will end up having to write a shell-script which wraps emacs and emacsclient. I once wrote one, but I am afraid I lost it. But there most be others in the wild.

from with-editor.

deb0ch avatar deb0ch commented on July 17, 2024

Ok, thank you so much for your insights, that was really helpful ! πŸ‘

I thought for the longest time that with-editor could help me with that, but I guess I never dug deep enough to realize that no.

Well, I guess I'll see you around ! Take care and thank you for the awesome Magit !

from with-editor.

tarsius avatar tarsius commented on July 17, 2024

Your welcome!

from with-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.