Emacs, Objective-C, and autocomplete

前端 未结 5 969
轻奢々
轻奢々 2021-01-31 05:37

I recently switched to emacs for my code editing, and it mostly works well.

However, for Objective-C I find myself missing Xcode\'s autocomplete feature as I have troubl

相关标签:
5条回答
  • 2021-01-31 06:07

    A somewhat buggy and hacky, but very nice solution is clang-completion-mode.el found in the clang svn.

    0 讨论(0)
  • 2021-01-31 06:13

    I haven't tried it yet, but company-mode has an xcode backend that could be quite helpful:

    http://nschum.de/src/emacs/company-mode/

    0 讨论(0)
  • 2021-01-31 06:17

    I haven't used XCode, but emacs comes with several autocomplete modes.

    See:

    • built in dabbrev-expand (M-/ runs the command dabbrev-expand which "autocompletes" partially written text)
    • AutoComplete
    • HippieExpand

    Also cedet for something more sophisticated - but I don't think it works with objective-c unfortunately.

    0 讨论(0)
  • 2021-01-31 06:20

    I wrote a script to export function definitions in Cocoa SDK as yasnippet snippets: http://github.com/zegal/yasobjc

    With the help with ETAGS and auto-complete, the completion experience is very close to XCode. You can have a try.

    0 讨论(0)
  • 2021-01-31 06:23

    Edit the file auto-complete.el (look for it in the folder you installed "auto-complete" package, of course):

    Goto line 165, I guarantee you know what to do already. :)

    0 讨论(0)
提交回复
热议问题