从Emacs转换到Xcode的提示 [英] Tips for transitioning from Emacs to Xcode

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

问题描述

我是一名从Linux / Emacs转换到OSX / Xcode的开发人员。有没有人有任何提示或建议,平滑这个转换关于文本编辑?具体来说:



Emacs习惯在切换时引起最多的胃灼热,即您重复出现的错误是Emacs背景的结果?



有没有办法使Xcode工作类似,还是需要改变行为?



是有没有你想从Emacs你不能得到的Xcode?

我最感兴趣的文本编辑器部分,例如键绑定,拆分窗口,在缓冲区之间移动等...我从来没有在IDE中使用Emacs。它总是一个纯文本编辑器给我。编译发生在另一个shell中。

解决方案

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



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



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

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

到您的emacs配置文件。


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:

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?

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

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

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.

解决方案

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 :-).

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 :-)

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)

to your emacs' configuration file.

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

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