summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2022-12-10 09:20:19 -0500
committerDavid Thompson <dthompson2@worcester.edu>2022-12-10 09:20:19 -0500
commit8cbb7d87b57f4007ee54b1c8ee339e0ee8ed9cf0 (patch)
tree8c6a0bde668e43ff46ccba6afd52532b94c91acc
parent68fb376d4dcdec98a85ce8e3ae48156aacd3688e (diff)
emacs: Remove inheritenv and tweak buffer-env config.
-rw-r--r--dotfiles/.emacs.d/init.el7
1 files 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")))