LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-04-2012, 08:19 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 444

Rep: Reputation: 19
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
 
Old 06-04-2012, 08:45 AM   #2
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 444

Original Poster
Rep: Reputation: 19
I found it:
Code:
set -a
 
  


Reply


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 12:55 PM
Debugging WPA; ifup doesn't pass environment variables! jagmarz Linux - Wireless Networking 1 07-29-2008 06:50 PM
pass variables through hyperlink in php ALInux Programming 2 12-23-2005 02:27 PM
script (or other) to pass variables to C++ program ngwenyama Programming 9 01-20-2005 10:54 PM
Environment Variables: xterm, ls, mc, and emacs colors kulitpuro Slackware 4 09-01-2003 02:06 AM


All times are GMT -5. The time now is 09:03 PM.

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