i use etags to generate a TAGS file that allows me to navigate through source code of c++ projects that i work on. the default name for the file that contains the tags is TAGS so everytime i had to type make TAGS in order to generate the tags file. i hate typing capital letters therefore i have been trying to change that to lower case for some time now finally i was able to do it today
put the following in your .emacs file
(setq tags-file-name “tags”)
that’s it !!!
for some strange reason sometimes this works and sometimes it doesn’t … i have not yet investigated as to why this is happening meanwhile i think the following will do for the time being…
have a phony target called tags and then everything will work out nicely…
.PHONY: all clean tags
tags:
find -L $(srcDirs) -name ‘*.cpp’ -o -name ‘*.h’ | etags -L -
I’m using ArchLinux and I can’t find a package with etags binary. By any chance, do you know which package contains etags? Or should I install it from source?
A couple of minutes later I’m able to answer my question by myself. There’s ctags package in ArchLinux.
apologies for the late reply…. yes the ctags package in archlinux repo will do the job for you… use the following
to generate TAGS file for use with emacs…
also on archlinux the etags.emacs binary will do the job for you.. unfortunately it does not support the recurse feature so i don’t use it … i use the following in my makefiles