Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-04-2012, 07:19 AM   #1
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 530

Rep: Reputation: 28
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?

Old 06-04-2012, 07:45 AM   #2
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 530

Original Poster
Rep: Reputation: 28
I found it:
set -a


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I pass variables? Karas Linux - Newbie 2 11-23-2009 11:55 AM
Debugging WPA; ifup doesn't pass environment variables! jagmarz Linux - Wireless Networking 1 07-29-2008 05:50 PM
pass variables through hyperlink in php ALInux Programming 2 12-23-2005 01:27 PM
script (or other) to pass variables to C++ program ngwenyama Programming 9 01-20-2005 09:54 PM
Environment Variables: xterm, ls, mc, and emacs colors kulitpuro Slackware 4 09-01-2003 01:06 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration