Create tags in emacs

A quick summary on what are tags and how to create them

find . -name \*.\*pp | xargs etags

create the tags from *.*pp files, including .cpp and .hpp. With the tags file, you can do “esc .” on the current function or variable and find its definition.

To go back to the original location, do esc *

Additional notes

1.  Find

To get multiple patterns of files that we want to generate tags for

find . -name “*.hh” -o -name “*.C” (for *.hh an *.C)

2. “xargs” just pipe in the stdin arguments

3. A documentation on tags for emacs

This entry was posted in Tools and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s