免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1027 | 回复: 0

Using emacs & cscope [复制链接]

论坛徽章:
0
发表于 2009-11-28 00:18 |显示全部楼层
It's much comfortable to review code using emacs and cscope. So I just configured them for my newly installed Ubuntu.
Here's the procedure:
1. Install emacs by issuing "apt-get install emacs23". This will install the latest 23 version of emacs with gtk2 UI.
2. Install cscope by "apt-get install cscope".
3. Add following lines to ~/.emacs
(load-file "/usr/share/emacs/site-lisp/xcscope.el")
(require 'xcscope)4. Download the source code by "apt-get install linux-source-2.6.31". This operation retrieve a package in /usr/src directory. Go and decompress it.
5. Go to the decompressed dir and issuing "cscope-indexer -r"
6. Open any source file using emacs and cscope is ready.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6646/showart_2105828.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP