Giter Site home page Giter Site logo

Comments (7)

habnabit avatar habnabit commented on August 16, 2024

Sure! I'll make a new github repo for remote-emacsclient shortly.

I'm curious how you would use this for interactive rebasing, though.

from dotfiles.

Silex avatar Silex commented on August 16, 2024

Nice! About interactive rebasing, from what I understand I can set GIT_EDITOR to what you wrote and my local emacs would be asked to edit the rebase steps file.

The only tricky step is about how to have local emacs notify the remote emacsclient that it's done with the file, but I think it shouldn't be too hard. You just need to write a version of the remote emacsclient that waits for some signal.

Then we can use it like EDITOR=remote-emacsclient crontab -e too.

from dotfiles.

habnabit avatar habnabit commented on August 16, 2024

Yes, however, remote-emacslient isn't necessary for that—you could use regular emacsclient. The only time remote-emacsclient is necessary is when you are trying to do all of this over TRAMP as well.

from dotfiles.

Silex avatar Silex commented on August 16, 2024

Well this is the point, to do it over TRAMP. Sorry if I was unclear.

We already use emacsclient locally a lot for magit. So you think you will have a package ready soon? :)

I'm currently testing remote-emacsclient, I'll ask if I get stuck.

from dotfiles.

Silex avatar Silex commented on August 16, 2024

OMG IT WORKED IT WAS AWESOME LET'S DANCE NAKED IN THE RAIN 😍

I just did a heavy interactive rebase over TRAMP and it worked perfectly. I just ran GIT_EDITOR=emacsclient.py git rebase -i SHA1, there I did some squashed/reworded commits and it did the right thing. I think this is awesome for any TRAMP emacs users.

About, emacsclient.sh, one has to be careful which version of netcat he uses, for me it didn't work with nmap-ncat's version, but package nc6 worked. I guess the package could offer bash/python/perl wrappers and do some autodetection. Also it probably makes sense to copy the script to /tmp on successful TRAMP connection.

from dotfiles.

habnabit avatar habnabit commented on August 16, 2024

yeah, emacsclient.sh was a first draft, but it's pretty much garbage. I'm going to delete it. sorry about the delay on this, though! here's the split repo: https://github.com/habnabit/remote-emacsclient

from dotfiles.

Silex avatar Silex commented on August 16, 2024

Ok I'll create issues on the new repo then ;)

from dotfiles.

Related Issues (1)

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.