【发布时间】:2013-08-23 06:20:13
【问题描述】:
我最近开始使用 Emacs 作为我的主要编辑器。有一件事情困扰着我: 当我在我的 shell 中启动 Emacs 时,它会在一个新窗口中启动 Emacs。如果它被 shell 调用,我希望它在 shell 中启动,当它从工作区调用时,我希望它在新窗口中启动。
这可以通过我错过的一些配置来实现,还是任何一种 lisp?
我将 Manjaro 与 Xfce 和 fish-shell 一起使用 (http://fishshell.com/)
问候, 罗宾
【问题讨论】:
-
你的意思是像
emacs -nw? -
谢谢 jlahd,我不知道'emacs -nw'。有没有办法在 shell 中启动时使用 -nw 自动调用 emacs?
-
你应该在你的 shell 中为它创建一个别名,例如
alias em "emacs -nw"。之后,在 shell 中说em运行emacs -nw。