Giter VIP home page Giter VIP logo

Comments (4)

dcunited001 avatar dcunited001 commented on September 18, 2024

Also, in buffers where buffer-env is active, there are some variables which I want to be global to emacs which end up out of sync.

I use these scripts to set SSH_AUTH_SOCK and SSH_AGENT_PID in emacs:

Do you know how to walk through the environments and set an environment variable like this across emacs?

from buffer-env.

dcunited001 avatar dcunited001 commented on September 18, 2024

And one more related problem: in this org file UTIL.org, I'm trying to set the environment variable PYTHONPATH to make accessible the python modules from the guix package git-repo.

In the end, i'm planning on tangling these and running the python scripts with guix shell -m -- python3 util/script.py so that should sidestep the issue.

Most everything works, but when I try to run the last python block, the environment loaded shows os.environ["PATH"] correctly, but sys.path is not correct. When I run guix shell -m and python3 in the terminal, i get a python that behaves as expected. Am I doing something wrong here?

I'll dig around in the buffer-env source a bit soon, but if you could elucidate some of this, that would really help. Thanks.

from buffer-env.

astoff avatar astoff commented on September 18, 2024

I'm only superficially familiar with org-babel, but it seems like you want to set buffer-env-script-name to nil in the tangled buffer. I will not add special support for org-babel, but if you can describe a general mechanism that helps you, I can implement it.

As to the other scripts, maybe calling setenv in a temp buffer (which has no local binding of process-environment) would do the trick for you.

from buffer-env.

dcunited001 avatar dcunited001 commented on September 18, 2024

Thanks for the help. I'll try that out. I'm still learning how to organize guix.scm and manifest.scm into projects.

from buffer-env.

Related Issues (12)

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.