1

I have just started using emacs, after coming from using Xcode. I would like to get code completion for C++, however there are a whole bunch of things that don't really explain what they do (at least not to someone who is used to things just working)

I've looked at irony-mode and company but can't seem to get them to work, and the documentation seems to be awful for irony-mode, I'm not even sure what it does. Company-mode seems to be responsible for displaying the small popup rather than jarringly opening a new frame.

I'm not sure what backend I need for company, I'd have though clang would be enough, but while I'm not sure if I enabled that correctly, no matter what I did I couldn't get the completion popup to show.

I also found helm, and have no idea what that does differently to eithe rof the two above.

Is there a simply guide, or just any documentation for irony-mode that will help me. I really feel like I'm missing something obvious because it can't be this complicated to get code completion when every IDE has it out of the box.

  • this may be helpful. Also, take a look at rtags. helm is something completely different. – xuhdev Apr 26 '16 at 18:20
  • If you want to have nice things by default, consider spacemacs. – xuhdev Apr 26 '16 at 18:22
  • ah yeah, another thing is rtags, is that instead of irony-mode or company-mode or in addition? – Jonathan. Apr 26 '16 at 18:27
  • also how is helm different when it is is described as incremental completions? – Jonathan. Apr 26 '16 at 18:29
  • company-mode is only a completion framework: how things are completed are determined by backends. rtags also provide a backend for it. Helm is for something completely different: with helm, M-x, C-x C-f recentf, etc. show you a completion popup for the minibuffer. It is not for C++. – xuhdev Apr 26 '16 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.