Configure Emacs to source insight-

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.