如何开始“emacsformacosx”在码头 [英] How to start "emacsformacosx" in terminal
问题描述
我正在使用MAC OX 10.6,并从这里安装emacs http://emacsformacosx.com/
I am using MAC OX 10.6 , and install the emacs from here http://emacsformacosx.com/
我想知道如何在终端中启动它,所以我的ecb可以打开当前目录
I want to know how to start it in terminal, so my ecb can open current directory
推荐答案
其实很简单,只要从终端运行就可以了:
It is actually quite easy, just run it from terminal like this:
/Applications/Emacs.app/Contents/MacOS/Emacs -nw
-nw选项意味着启动没有gui框架的emacs。
the -nw option means to start emacs without the gui frame.
您可以将以下内容放在shell(在我的mac .zshenv上):
You can put the following in your shell (on my mac .zshenv) :
alias Emacs="/Applications/Emacs.app/Contents/MacOS/Emacs -nw"
然后我有两个命令:
Emacs
:for emacs version 24
Emacs
: for emacs version 24
emacs
:对于苹果版的emacs
emacs
: for the apple version of emacs
当然你可以将Emacs.app别名为emacs,但这允许我以两种不同的方式进行自定义 - 例如Emacs 24允许我使用列表包等。 emacs 22忽略了大部分的功能,所以如果需要,我可以随时恢复为裸机的emacs。您的使用可能有所不同,但如果您不记得emacs的参数,可以通过以下方式找到它们:
Of course you can just alias the Emacs.app to emacs, but this allows me to customize the two differently - for instance Emacs 24 allows me to use list-packages and so forth. emacs 22 ignores most of this, so I can always revert to a 'bare metal' emacs if need be. Your usage may vary, but if you don't remember the arguments to emacs you can find them by doing this:
emacs --help
有趣的一些:
Emacs.app --fullscreen
Emacs.app --line-spacing
Emacs.app --vertical-scroll-bars
更多信息: http://www.gnu.org/software/emacs/manual/html_node/emacs/Option-Index.html#Option-Index
这篇关于如何开始“emacsformacosx”在码头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!