Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the Eclipse project effect out of Emacs?

Tags:

c

emacs

Through school I used Eclipse with Java, but I'm going embedded and picking up C and Emacs. I am looking for a way to achieve several functions of the project in Eclipse. Specifically the functions I miss are finding the declaration of a function that was declared in another file, and finding all calls to a function. Is there a way to achieve this? I don't mind using make files in order to compile, as it seems like the right tool for the job (besides my understanding is that if you use eclipse or visual studio for C they just auto generate you a make file anyway). I just can't help but feel some of the things mentioned above must have solutions in this editor as well, since they are just so handy.

like image 799
Irony Avatar asked Jan 17 '23 14:01

Irony


1 Answers

I'd suggest a combination of projectile + ctags + ECB (or just CEDET) + cscope.

Projectile offers easy navigation in a project's files and some nice functions like text search, tags regenerations, etc. ECB is an Emacs Code Browser that makes Emacs appear more IDE-like, CEDET will give you smart code completion and cscope will give you the ability to find usages (amongst other cool features).

like image 70
Bozhidar Batsov Avatar answered Jan 30 '23 21:01

Bozhidar Batsov