Prefer direnv to manage ORG_DIRECTORY

Instead of keeping this in my ~/.profile, I'm going to define it in .envrc.

What I still don't know is how functions like `getenv` are supposed to interact
with direnv. I suppose maybe they aren't? Right now, when I call
`(getenv "DOTFILES")` from Emacs, it's `nil`, which I understand. Hopefully the
more I use direnv, the more reasonable expectations I'll have.
This commit is contained in:
William Carroll 2020-01-15 22:13:18 +00:00
parent 6e70cb527c
commit dd9db4e318
3 changed files with 17 additions and 2 deletions

View file

@ -31,14 +31,13 @@ export RUST_SRC_PATH
# TODO: Decide if clipmenu is compatible with EXWM.
# Ensure clipmenu uses rofi instead of dmenu
# TODO: Remove this after fully supporting Emacs client for clipmenu.
export CM_LAUNCHER=rofi
# Application configuration
export FZF_DEFAULT_COMMAND='fd --hidden --follow --exclude ".git"'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export ORG_DIRECTORY="$HOME/Dropbox/org"
# Prevent compton from fading to the lock screen. This also prevents the white
# overlay that compton was causing to appear. Still unsure why that was
# happening.