从 Emacs 过渡到 Xcode 的技巧 [英] Tips for transitioning from Emacs to Xcode

查看:24
本文介绍了从 Emacs 过渡到 Xcode 的技巧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名开发人员,正在从 Linux/Emacs 过渡到 OSX/Xcode.有没有人有任何关于文本编辑平滑过渡的提示或建议?具体:

I'm a developer making the transition from Linux/Emacs to OSX/Xcode. Does anyone have any tips or recommendations for smoothing this transition with regard to text editing? Specifically:

哪些 Emacs 习惯在切换时引起了最多的胃痛,即您因 Emacs 背景而反复犯哪些错误?

What Emacs habits caused the most heartburn upon switching, i.e. what errors did you make repeatedly that were a result of an Emacs background?

有没有办法让 Xcode 以类似的方式工作,或者是否需要改变行为?

Was there a way to make Xcode work similarly, or did it require a change in behavior?

Emacs 中是否有任何您在 Xcode 中无法获得的东西?

Is there anything you miss from Emacs that you can't get in Xcode?

我最感兴趣的是文本编辑器部分,例如键绑定、拆分窗口、在缓冲区之间移动等……我从未在 IDE 意义上使用过 Emacs.对我来说,它始终是一个纯文本编辑器.编译发生在另一个 shell 中.SCM 内容同上.

I'm mostly interested in the text editor portion of this, e.g. key bindings, split windows, moving between buffers, etc... I never used Emacs in the IDE sense. It was always a pure text editor to me. Compiles happened in another shell. Ditto for SCM stuff.

推荐答案

不要完全切换到 Xcode,只需使用 Emacs 进行编辑,其余使用 Xcode(UI 设计、编译、调试、等等.).这对你来说似乎是一个更好的妥协(对我来说,因为我这样使用 Xcode :-).

Don't fully switch to Xcode, just use Emacs for editing and Xcode for the rest (UI design, compilation, debugging, etc.). It seems to be a better compromise for you (and for me, because I use Xcode this way :-).

最好的部分是 Xcode 可以让您将默认编辑器更改为任何内容!只需在 Xcode 首选项的文件类型"选项卡中将文本 -> 源代码"编辑器设置为 Emacs.app(或小写的 emacs 如果您希望使用终端版本),您的生活就会更快乐:-)

The best part is that Xcode will let you change the default editor to anything! Just set the "text -> sourcecode" editor to Emacs.app (or lowercased emacs if you wish to use the terminal version) in the "File Types" tab of Xcode's preferences and your life will be happier :-)

以防万一:当从 OSX 打开文件时(在 Dock 图标中拖动它,从 Finder 打开它,...,甚至从 Xcode 打开它),Emacs.app 23.1 的默认行为是打开一个新框架.不喜欢就加

Just in case: when opening a file from OSX (dragging it in the Dock icon, open it from the Finder, ..., and even open it from Xcode), the default behavior of Emacs.app 23.1 is to open a new frame. If you don't like it, just add

(setq ns-pop-up-frames 'nil)

到你的 emacs 的配置文件.

to your emacs' configuration file.

这篇关于从 Emacs 过渡到 Xcode 的技巧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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