我需要使用我$PATH的Emacs来运行一些命令.如何让Emacs使用它?我从Ubuntu存储库安装了Emacs.
Emacs Mx编译没有看到.bashrc中设置的任何别名.如果我使用Mx shell然后键入别名,它没关系.我尝试从/ etc/profile,从〜/ .profile,〜/ bash_env采购.bashrc,我能想到的任何东西都无济于事.
我在Emacs 23和Ubuntu 11上.我使用/ usr/bin/emacs%F从桌面按钮启动emacs.
我在ubuntu中安装了emacs(使用sudo apt-get install emacs).我讨厌的问题是,当我尝试从emacs中运行shell命令时(例如M-! ls)输出前面是这样的:
bash: cannot set terminal process group (-1): Invalid argument
bash: no job control in this shell
Run Code Online (Sandbox Code Playgroud)
在我的.emacs我都可以选择(setq shell-command-switch "-ic").这样我可以使用我的别名和命令.这没有给我工作上的问题,它让我使用我的别名.我如何使用我的别名但避免这个问题?