Emacs compilation mode won't see bash alias
问题 Emacs M-x compile does not see any aliases set in .bashrc. If I use M-x shell then type the alias, it is fine. I tried sourcing .bashrc from /etc/profile, from ~/.profile, ~/bash_env, anything I can think of to no avail. I am on Emacs 23 and Ubuntu 11. I start emacs using /usr/bin/emacs %F, from a desktop button. 回答1: Emacs inherits its environment from the parent process. How are you invoking Emacs - from the command line, or some other way? What happens if you: M-x compile RET C-a C-k bash