LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   I need to pass environment variables to emacs (https://www.linuxquestions.org/questions/programming-9/i-need-to-pass-environment-variables-to-emacs-948427/)

CollieJim 06-04-2012 07:19 AM

I need to pass environment variables to emacs
 
I'm trying to use environment variables to tell emacs where to find custom files.

I set FILE_LOCATION=<path> in ~/.bashrc, and 'echo $FILE_LOCATION' shows it correctly set.

However my .emacs cannot see it and it is missing in the emacs shell buffer.

How do I pass all environment variables to a sub-shell?

Thanks
Jim

CollieJim 06-04-2012 07:45 AM

I found it:
Code:

set -a


All times are GMT -5. The time now is 09:56 AM.