From 8cbb7d87b57f4007ee54b1c8ee339e0ee8ed9cf0 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 10 Dec 2022 09:20:19 -0500 Subject: emacs: Remove inheritenv and tweak buffer-env config. --- dotfiles/.emacs.d/init.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dotfiles/.emacs.d/init.el b/dotfiles/.emacs.d/init.el index 6b28b59..f3310a9 100644 --- a/dotfiles/.emacs.d/init.el +++ b/dotfiles/.emacs.d/init.el @@ -63,14 +63,11 @@ (guix-load-path '("~/.guix/current/share/guile/site/3.0")) (guix-load-compiled-path '("~/.guix/current/lib/guile/3.0/site-ccache"))) -(use-package inheritenv - :config - (inheritenv-add-advice 'shell-command-to-string) - (inheritenv-add-advice 'shell)) - +;; This config based on: https://amodernist.com/texts/emacs-guix.html (use-package buffer-env :config (add-hook 'hack-local-variables-hook 'buffer-env-update) + (add-hook 'comint-mode-hook #'hack-dir-local-variables-non-file-buffer) :custom (buffer-env-script-name '("guix.scm" "manifest.scm"))) -- cgit v1.2.3