From 12f4fe6ae43a002990556ce654c8069baff2987d Mon Sep 17 00:00:00 2001 From: Emmanuel Agullo <emmanuel.agullo@inria.fr> Date: Wed, 18 Oct 2023 03:05:06 +0200 Subject: [PATCH] emacs-direnv -> emacs-envrc For buffer-local environment variables --- bedrock-full.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bedrock-full.el b/bedrock-full.el index 15de76c..d9d06ea 100644 --- a/bedrock-full.el +++ b/bedrock-full.el @@ -18,9 +18,12 @@ ;; (add-to-list 'major-mode-remap-alist '(julia-mode . julia-ts-mode)) (add-to-list 'major-mode-remap-alist ' (python-mode . python-ts-mode))) -;; https://github.com/wbolster/emacs-direnv -(use-package direnv - :config - (direnv-mode)) +;; We use https://github.com/purcell/envrc rather than +;; https://github.com/wbolster/emacs-direnv to set environment +;; variables buffer-locally. +(use-package envrc + :bind (:map envrc-mode-map + ("C-c e" . envrc-command-map)) + :init (envrc-global-mode)) (provide 'bedrock-full) -- GitLab