npub1ap…2mane on Nostr: :emacs: envrc.el has been great for running direnv when changing directories in emacs ...
envrc.el has been great for running direnv when changing directories in emacs in order to add the packages in my nix-shell to path.
however I mostly navigate to projects with project.el, and I had to manually do M-x envrc-allow every time
reading up on how to improve this, with advice-add, I can automatically call envrc-allow after all the relevant functions
elisp is great
#emacs
Published at
2024-01-25 20:51:07Event JSON
{
"id": "1c4f8e36c19198937086f8630c9c1a3a729d4e996e31ea4ab224af2b7940ee67",
"pubkey": "e8485d0d064e7e507236576ca9831437be7b01a5b6123d6e1fa469b15c1d149f",
"created_at": 1706215867,
"kind": 1,
"tags": [
[
"t",
"emacs"
],
[
"emoji",
"emacs",
"https://cdn.masto.host/mastodongamedevplace/custom_emojis/images/000/258/465/original/a0e2826ef479216b.png"
],
[
"proxy",
"https://mastodon.gamedev.place/users/MenacingMecha/statuses/111818563075138293",
"activitypub"
]
],
"content": ":emacs: envrc.el has been great for running direnv when changing directories in emacs in order to add the packages in my nix-shell to path.\n\nhowever I mostly navigate to projects with project.el, and I had to manually do M-x envrc-allow every time\n\nreading up on how to improve this, with advice-add, I can automatically call envrc-allow after all the relevant functions\n\nelisp is great\n\n#emacs\n\nhttps://cdn.masto.host/mastodongamedevplace/media_attachments/files/111/818/556/122/674/965/original/8257c28918269733.png",
"sig": "2c09c2bb0040ca43f38e984a538b3c933e19ead9f156b4753bf8af1a232a7753358dc9ea6caa3155f06002ac792a30ceda6a83ef21ca9e0c6fd54f4daf1cb530"
}