如何启动“emacsformacosx"在终端 [英] How to start "emacsformacosx" in terminal

查看:31
本文介绍了如何启动“emacsformacosx"在终端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 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 :适用于 emacs 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆