Coder Social home page Coder Social logo

add support for TRAMP about emacs-direnv HOT 5 OPEN

wbolster avatar wbolster commented on May 26, 2024 6
add support for TRAMP

from emacs-direnv.

Comments (5)

wbolster avatar wbolster commented on May 26, 2024 2

i don't really see how that could work. this package patches the local env inside emacs, and inherently acts locally

from emacs-direnv.

eush77 avatar eush77 commented on May 26, 2024 2

I have just integrated Direnv with Tramp in my own configuration by prefixing commands executed in Tramp with direnv exec <default-directory>. I advised tramp-sh-handle-start-file-process instead of dealing with tramp-remote-process-environment, which goes quite contrary to how emacs-direnv operates and is less efficient, but it works.

from emacs-direnv.

bricewge avatar bricewge commented on May 26, 2024

I think it need to patch the remote tramp environment instead of the local when in a tramp directory. Some example of changes are call-process should be replaced by process-file and process-environment by tramp-remote-process-environment.

Some days ago I ran into a package that added tramp support with a couple of line patch, unfortunately I can't manage to find it today. The only lead I have ATM is that page page of the TRAMP manual on how to integrate it with other packages.

EDIT: In emacs 27.1 executable-find can take an optional remote argument, see here.

from emacs-direnv.

tshu-w avatar tshu-w commented on May 26, 2024

@wbolster any update? There seems to be a pull request.

from emacs-direnv.

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.