I'd like to set things up so that I can use emacs on multiple computers, with the .emacs.d directory shared amongst them (via DropBox).
My solution so far has been to use environment variables which are then read in my init.el. The computer-specific environment variable then tells me where to find the computer-specific recentf file, etc, etc. On Windows this works great because one can set environment variables via a control panel option.
I'm trying to figure out how to get computer-specific environment variables to work in emacs on MacOS. Ideally, I'd like to be able to launch emacs from both Spotlight and from a terminal window (iTerm2, specifically).
I found a StackOverflow answer about getting environment variables into GUI apps but it doesn't seem to work (emacs still has troubles loading the computer-specific files because the environment variable doesn't appear to be set in the init.el).
I'd like to avoid setting up .bash_profile to set the environment variables so that I can share my .bash config files through DropBox, as well