Emacs的,Objective-C的,和自动完成 [英] Emacs, Objective-C, and autocomplete
问题描述
最近,我切换到emacs的为我的code编辑,它主要是行之有效的。
I recently switched to emacs for my code editing, and it mostly works well.
然而,对于Objective-C中,我发现自己缺失的X code'S自动完成功能,因为我不记得长的函数名称,如
However, for Objective-C I find myself missing Xcode's autocomplete feature as I have trouble remembering the long function names such as
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation screen:(NSScreen *)screen;
有没有办法让emacs的X code风格的自动完成?
Is there a way to get Xcode-style autocompletion on emacs?
此外,是否有什么好的包,以帮助可可或Objective-C普遍认为我应该有?
Also, are there any good packages to help with Cocoa or Objective-C in general that I should have?
推荐答案
我写了一个脚本在可可SDK导出函数定义为yasnippet片段: http://github.com/zegal/yasobjc
I wrote a script to export function definitions in Cocoa SDK as yasnippet snippets: http://github.com/zegal/yasobjc
通过使用ETag的帮助和自动完成,完成的经验是非常接近的X $ C $℃。你可以试试。
With the help with ETAGS and auto-complete, the completion experience is very close to XCode. You can have a try.
这篇关于Emacs的,Objective-C的,和自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!