ZK_
ZK_

Reputation: 564

How can I jump into a function definition like I did in Visual Studio using F12?

I've been using Emacs for just 1 month... Jumping into function is always bugging me. My ecb configuration is shown below.

   (add-to-list 'load-path "~/site-lisp/ecb-2.40/")
   (require 'ecb)
   (global-set-key [(control return)] 'semantic-ia-complete-symbol-menu)

Upvotes: 1

Views: 1647

Answers (3)

user594138
user594138

Reputation:

For current versions of emacs/cedet and C/c++ projects you don't need to bother with etags/ctags/global, as semantic takes care of analyzing your project -- it will use the tools present if need be.

If cedet is set up correctly, I guess the function(s) you want to try are semantic-ia-fast-jump and semantic-complete-jump.

That said, I suggest to work through Alex Otts "gentle introduction to CEDET" 1, setting up your project and configuring emacs as you progress.

Upvotes: 3

Pulimon
Pulimon

Reputation: 1816

There is an answer in a related topic which you can find here which uses exuberant ctags

Upvotes: 0

Daimrod
Daimrod

Reputation: 5030

You can etags to generate a TAGS file for your project and use M-. to jump to the desired function.

M-!find -type f -name \*.[ch] -exec etags -a {\} \;RET

I do this in the root directory for small projects, but if you want something more sophisticated you probably need to configure CEDET.

Upvotes: 1

Related Questions