Go Job Hunting at the LQ Job Marketplace
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, 08:19 AM   #1
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 489

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?

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

Original Poster
Rep: Reputation: 19
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 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 08:34 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