this post was submitted on 23 Nov 2023
1 points (100.0% liked)
Emacs
311 readers
1 users here now
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I highly recommend nix-direnv along with the direnv emacs package. I do everything with flakes, so I'd have a
flake.nix
that defines a shell with the inputs I need, then I'd have a.envrc
with the contentsuse flake
in the same directory. With those in place, you may need to rundirenv allow
in that directory, and then you can edit a.org
file in the same directory as the flake and the python environment will have what you need.Here's a flake I quickly made using a minimal template.
And then here's the
.org
file I tested with,