summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d
diff options
context:
space:
mode:
authorAlan Pearce2016-03-14 16:24:06 +0100
committerAlan Pearce2016-03-14 16:24:06 +0100
commite84a3c8f9b949a4a19944d17b9d18980906849bb (patch)
tree5b2a55d46b7ac5f93e3d3dc4ec8f8f0b165b7cde /tag-emacs/emacs.d
parent2d5404163d81e49255bc6f9b713440021c1cf872 (diff)
downloaddotfiles-e84a3c8f9b949a4a19944d17b9d18980906849bb.tar.lz
dotfiles-e84a3c8f9b949a4a19944d17b9d18980906849bb.tar.zst
dotfiles-e84a3c8f9b949a4a19944d17b9d18980906849bb.zip
Emacs: Install projectile-direnv
Diffstat (limited to 'tag-emacs/emacs.d')
-rw-r--r--tag-emacs/emacs.d/init.org8
1 files changed, 8 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 036bfb2..a87a2dd 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -447,6 +447,14 @@ based upon some folder conventions I use.
                     projectile-completion-system 'ivy)))
 #+END_SRC
 
+I use [[https://github.com/direnv/direnv][direnv]] to automatically assign environment variables in project
+directories.  Now I can have them set inside emacs too.
+
+#+BEGIN_SRC emacs-lisp
+  (use-package projectile-direnv
+    :config (add-hook 'projectile-mode-hook #'projectile-direnv-export-variables))
+#+END_SRC
+
 ** perspective
 
 This package makes buffer-switching inside of projects make sense, by