Sunday, April 3, 2011

Tags with Emacs

For emacs you can't use the file, which is generated by ctags. You should use etags.

$ find -E . -iregex '.*\.(cpp|[ch])$' | etags -

Inside Emacs

M-x visit-tags-table <RET> FILE <RET>
M-. Find the first definition of TAG
M-* Pop back
C-u M-. Find the next definition



Reference:

Synopsis:

1 comment:

麥克斯 said...

xTerm
% find . -regextype posix-egrep -iregex ".*\.(cpp|[chCH])$" | xargs etags -a