我正在使用Ubuntu 11.10.当我在终端中键入命令"emacs"时,它会打开emacs作为一个单独的窗口.如何在终端内打开它,比如nano编辑器?
use*_*579 27
本着提供功能的精神,请转到位于底部和底部的您.profile或.bashrc文件/home/usr/添加以下行:
alias enw='emacs -nw'
Run Code Online (Sandbox Code Playgroud)
现在,每次打开终端会话时,只需键入,例如,enw您就有三个字母,即emacs无窗口选项:).
我不喜欢别名解决方案用于我的目的。一方面,它不适用于设置export EDITOR="emacs -nw".
但是您可以传递--without-x到配置,然后只有常规的旧 Emacs 将始终在终端中打开。
curl http://gnu.mirrors.hoobly.com/emacs/emacs-25.3.tar.xz
tar -xvzf emacs-25.3.tar.xz && cd emacs-25.3
./configure --without-x
make && sudo make install
Run Code Online (Sandbox Code Playgroud)