Sunday, January 2, 2011

gccsense

gccsense is used to do automatic completion when using emacs / C++. At first, did not install using Ubuntu 9.04, but eventually worked with Ubuntu 9.10.

It worked OK using the following:

http://cx4a.org/software/gccsense/

I had to add the following two lines to my .emacs:

(add-to-list 'load-path "~/.emacs.d/")
(require 'gccsense)

Got the completion when doing M-x gccsense-complete after . or ->.
Have to record include paths with gccrec if you want completion with all your files (A little bit complicated)
.

No comments: