andras-simonyi/citeproc-el@538fed794c -> andras-simonyi/citeproc-el@9f783967c1 bdarcus/citar@51b30f2e40 -> bdarcus/citar@b24b5b94b7 emacs-lsp/lsp-mode@3d6a01dde9 -> emacs-lsp/lsp-mode@c228bce435 gagbo/consult-lsp@aaa9a31bc8 -> gagbo/consult-lsp@f4f195046b joaotavora/eglot@28092ba3af -> joaotavora/eglot@2c0f262c24 magit/forge@a44afa81f1 -> magit/forge@0ff9b8a0de magit/magit@2e73b66c29 -> magit/magit@0ac05f3962 millejoh/emacs-ipython-notebook@c6696c12eb -> millejoh/emacs-ipython-notebook@6063cee7fb purcell/envrc@8a9a142cf9 -> purcell/envrc@456c4100de realgud/realgud@978b455d7d -> realgud/realgud@3c88611c4e tumashu/posframe@3b1dc400d2 -> tumashu/posframe@6c0e63d6b3 vedang/pdf-tools@a8847b75d3 -> vedang/pdf-tools@4e6c778194 wandersoncferreira/code-review@136c0933ba -> wandersoncferreira/code-review@ccc3795a72 yoshiki/yaml-mode@63b637f846 -> yoshiki/yaml-mode@a79d2a7b92 Close: #5977 Ref: emacs-lsp/lsp-mode#3295
tools/direnv
Description
This module integrates direnv into Emacs.
direnv is an environment switcher for the shell. It knows how to hook into bash, zsh, tcsh, fish shell and elvish to load or unload environment variables depending on the current directory. This allows project-specific environment variables without cluttering the ~/.profile file.
Before each prompt, direnv checks for the existence of a ".envrc" file in the current and parent directories. If the file exists (and is authorized), it is loaded into a bash sub-shell and all exported variables are then captured by direnv and then made available to the current shell.
Module Flags
This module provides no flags.
Plugins
Hacks
- Normally, the direnv environment is updated on
post-command-hook
. We've changed it to update ondoom-switch-buffer-hook
,doom-switch-window-hook
anddoom-switch-frame-hook
instead. - Special direnv keywords/commands are highlighted in direnv-envrc-mode.
- A fix has been applied to ensure flycheck searches for executables from within the direnv environment, if any.
Prerequisites
This module requires the direnv
utility.
MacOS
brew install direnv
Arch Linux
direnv
is available on the AUR
yay -S direnv
NixOS
environment.systemPackages = [ pkgs.direnv ];
Or nix-env -i direnv
Troubleshooting
direnv + nix is slow
Consider augmenting direnv with lorri, which will cache nix builds and speed up direnv tremendously:
services.lorri.enable = true;