Silex/docker.el@0874520 -> Silex/docker.el@d6233bd editorconfig/editorconfig-emacs@19de0ec -> editorconfig/editorconfig-emacs@9a73ff7 emacs-lsp/dap-mode@8f69dc2 -> emacs-lsp/dap-mode@7ad9157 emacs-lsp/lsp-mode@81d62d5 -> emacs-lsp/lsp-mode@d5f0410 emacs-lsp/lsp-ui@271b47c -> emacs-lsp/lsp-ui@c3e7a37 emacsorphanage/quickrun@2e37ce9 -> emacsorphanage/quickrun@c6ce1f3 gilbertw1/dash-docs@111fd9b -> gilbertw1/dash-docs@dafc8fc jacktasia/dumb-jump@d760aa8 -> jacktasia/dumb-jump@d86f59c joaotavora/eglot@d99a447 -> joaotavora/eglot@ac9239b magit/forge@09bf8ad -> magit/forge@6f299d2 magit/magit@b1b2683 -> magit/magit@ae82fcf millejoh/emacs-ipython-notebook@42134ad -> millejoh/emacs-ipython-notebook@ee31cdb paradoxxxzero/jinja2-mode@cfaa7bb -> paradoxxxzero/jinja2-mode@4540f99 tkf/emacs-request@216d570 -> tkf/emacs-request@912525c tumashu/posframe@093b29a -> tumashu/posframe@6285217 wbolster/emacs-direnv@1daf479 -> wbolster/emacs-direnv@f5484b0 yoshiki/yaml-mode@cecf4b1 -> yoshiki/yaml-mode@34648f2
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
sudo pacman -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;