help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to configure xcscope


From: Richard Riley
Subject: Re: How to configure xcscope
Date: Wed, 06 May 2009 09:14:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

Lucius Fox <lucius.fox08@gmail.com> writes:

> Hi,
>
> I am following this link http://frodo.syminet.com/~deep/emacside.html
> in setting up cscope with emacs.
>
> But how can I configure it so that it looks at *.mm files when
> building the  cscope database?
>
> Symbol Lookup with cscope
>
> Download cscope program, and xcscope.el and cscope-indexer from an OSS
> repository. Save the xcscope.el onto some directory in Emacs'
> load-path. Edit your ~/.emacs as follows:
> (require 'xcscope)
>
> Thank you.
>
>

I dont know what an .mm file is but you can see my working setup here in
case it helps you or some others.

http://richardriley.net/projects/emacs/dotprogramming#sec-1.2

(FWIW, just listing key strokes without the name of the commands is not a
good thing since key strokes can and do change)

With this setup I also have some code to generate cscope databases:

,----
| SRC=~/programming
| cd $SRC
| ctags-exuberant  -e --recurse=yes --links=yes --verbose=no > /dev/null
| find -L $SRC -name "*.[chxsS]" -print > cscope.files
| cscope -b -q -u
| 
| SRC=~/programming/c
| cd $SRC
| ctags-exuberant  -e --recurse=yes --links=yes --verbose=no > /dev/null
| find -L $SRC -name "*.[chxsS]" -print > cscope.files
| cscope -b -q -u
`----

(The Linux kernel has a cscope target in it's Makefile)

Cscope is a nice tool.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]