From c4527545b373c1449b11789b7894213892e20e5f Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 5 Dec 2022 18:44:05 -0500 Subject: emacs: Add inheritenv and buffer-env config. --- dotfiles/.emacs.d/init.el | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'dotfiles') diff --git a/dotfiles/.emacs.d/init.el b/dotfiles/.emacs.d/init.el index e43303b..4eff60b 100644 --- a/dotfiles/.emacs.d/init.el +++ b/dotfiles/.emacs.d/init.el @@ -63,13 +63,16 @@ (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) +(use-package inheritenv + :config + (inheritenv-add-advice 'shell-command-to-string) + (inheritenv-add-advice 'shell)) -;; (use-package buffer-env -;; :config -;; (add-hook 'hack-local-variables-hook 'buffer-env-update) -;; :custom -;; (buffer-env-script-name "guix.scm")) +(use-package buffer-env + :config + (add-hook 'hack-local-variables-hook 'buffer-env-update) + :custom + (buffer-env-script-name "guix.scm")) ;;; -- cgit v1.2.3