diff options
author | Franck Cuny <franck@fcuny.net> | 2022-11-13 13:24:52 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-11-13 13:24:52 -0800 |
commit | 378b6281075f640746b7be6990367fa28ce1e407 (patch) | |
tree | b29c930c9114b41352e06247426e0a20e7b0ccc5 | |
parent | ref(elisp/gerrit): remove module related to gerrit (diff) | |
download | emacs.d-378b6281075f640746b7be6990367fa28ce1e407.tar.gz |
feat(envrc): add a new package: envrc
This is to Emacs what `direnv` is to my shell. It sources `.envrc` for a project and set variables on a per-buffer basis. Change-Id: Ica2451b17908333c86d708ede29ae7e15d30c60b
-rw-r--r-- | emacs/custom/my-packages.el | 1 | ||||
-rw-r--r-- | emacs/init.el | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/emacs/custom/my-packages.el b/emacs/custom/my-packages.el index 9d3dc7b..da5263b 100644 --- a/emacs/custom/my-packages.el +++ b/emacs/custom/my-packages.el @@ -68,6 +68,7 @@ ;; packages for interacting with tools (straight-use-package 'rg) (straight-use-package 'exec-path-from-shell) +(straight-use-package 'envrc) (provide 'my-packages) diff --git a/emacs/init.el b/emacs/init.el index 99b94a9..a5d46dc 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -31,6 +31,9 @@ (require 'my-packages) +(require 'envrc) +(envrc-global-mode) + (require 'my-settings) (require 'my-ui) (require 'my-dired) |