Comments (4)
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.
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.
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.
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)
- Alternative to Customize? HOT 6
- `format-prompt` not defined in Emacs 27 HOT 4
- Support pyproject.toml HOT 1
- `cl-letf` warning HOT 9
- Support specifying a command directly HOT 4
- Setting buffer-env-command locally HOT 3
- buffer-env-active mention in README does not exist
- Fails to activate virtualenv interactively HOT 13
- How to inherit environment from manifest.scm to external applications HOT 2
- Saving buffer-env-safe-files: wrong-type-argument listp t HOT 15
- Adding buffer-env-update to hack-local-variables-hook does not affect buffers without files HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buffer-env.