Anyone here uses emacs + etags
Anyone here uses emacs + etags on source code files? Or perhaps there's another tool than etags, that can be used?
The reason to use such tools is for quickly navigating to program code definitions like it is possible in visual studio under windows.
I think one needs to go to ~/OpenFOAM/OpenFOAM-1.5.x/src and type something like:
find . -name "*.[chCH]" -print | | etags -
to create the tags table. Is this right, and is there anything else to consider or know about?
Would this be all that's required or necessary for quickly jumping around, i.e. see class definitions?
I use Netbeans to do it. There
I use Netbeans to do it. There's a openFoamWiki article about setting it all up.
Hi, I use cscope, but not f
I use cscope, but not frequently (yet) ...
Try xcscope.el and ascope.el
Hi, Thanks both... I don't
Thanks both... I don't like netbeans, kdevelop and eclipse but I got emacs working with cscope:
I already got cscope installed as part of my distro, therefore: As I remember it, I took these 2 files (from contrib-dir) and placed them here:
/usr/local/bin/cscope-indexer (chmod +x)
(where /usr/share/emacs/22.2 is emacs load path)
Then I added to .emacs:
(setq cscope-do-not-update-database t)
Not sure about what 2nd line does, I think third line does the same, anyway it seem to work the same whether or not 2nd line is commented or not.
Then I went to ~/OpenFOAM/ and ran (build database recursively, not sure if "q" for quick indexing works):
cscope -R -q -b &
And everything seem to work... I'm happy about this, I can quickly dig into symbols and files.
Thanks again, if you have any comments or ideas please let me know.
|All times are GMT -4. The time now is 17:28.|