Source: www.cublog.cn/opera/showart.php? Blogid = 5421 & id = 37299
Turn Emacs into a code browser. Similar to sourceinsight, you no longer need to read the code in windows.
Required software:
Cscope-15.5.tar.gz http://sourceforge.net/projects/cscope
Ecb-2.32.tar.gz http://sourceforge.net/projects/ecb
However, for GNU Emacs installed, three additional packages are required: eieio, semantic, and speedbar.
Http://sourceforge.net/projects/cedet
Download these three packages
I used
Eieio-0.17.tar.gz
Semantic-1.4.4.tar.gz
Speedbar-0.14beta4.tar.gz
Install ECB and three support packages:
# Cd/usr/share/Emacs/Site-lisp
# Tar zxfv ecb-2.32.tar.gz.
# Tar zxfv eieio-0.17.tar.gz.
# Tar zxfv semantic-1.4.4.tar.gz.
# Tar zxfv speedbar-0.14beta4.tar.gz.
Make four connections
Ln-s ecb-2.32 ECB
Ln-s eieio-0.17 eieio
Ln-s semantic-1.4.4 semantic
Ln-s speedbar-0.14beta4 speedbar
Then modify
Site-start.el files
Add the following five lines
(Setq load-path (append load-path '("/usr/share/Emacs/Site-lisp/eieio ")))
(Setq load-path (append load-path '("/usr/share/Emacs/Site-lisp/semantic ")))
(Setq load-path (append load-path '("/usr/share/Emacs/Site-lisp/speedbar ")))
(Setq load-path (append load-path '("/usr/share/Emacs/Site-lisp/ECB ")))
(Require 'ecb)
Restart Emacs.
M-x ECB-activate
See what appears
It is easier to install cssag.
$ Tar zxfv cscope-15.5.tar.gz.
$ Cscope-15.5 CD
$./Configure
$ Make
# Make install
Then copy the cscope-indexer under the contrib/xcscope/directory to the path directory, for example,/usr/local/bin.
Copy xcscope. El
/Usr/share/Emacs/Site-lisp
Modify/usr/share/Emacs/Site-lisp/site-start.el
Add
(Require 'xcscope)
Restart Emacs and open a c file to see what changes have taken place?
See their own documents for instructions on the use of the above two software.