Emacs 23是Emacs的一个分支,,,它全面构建于unicode上,,,。内部编码以UTF-8为主,很好的支持中文.Debian的源中已经包括了Emacs版本,可惜它的x11显示实在时简陋,所以采用gtk来编译它.
00001: #apt-get install ssh 00002: #apt-get install texinfo cvs 00003: #cvs -z3 -d:ext:anoncvs@savannah.gnu.org:/cvsroot/emacs co -r emacs-unicode-2 emacs 00004: #./configure --prefix=/usr --with-x-toolkit=gtk --enable-font-backend --with-xft --with-freetype 00005: #make bootstrap 00006: #make info 00007: #make install
Cscope是一个源代码浏览程序,,它是一个单独的程序,.
00001: #apt-get install cscope
00001: (add-hook 'c-mode-common-hook 00002: '(lambda() 00003: (require 'xcscope)))
00001: C-c s I(cscope-index-files) //就可以生成Cscope数据库,就可以在程序中使用cscope了.
00001: C-c s s Find symbol. 00002: C-c s d Find global definition. 00003: C-c s g Find global definition (alternate binding). 00004: C-c s G Find global definition without prompting. 00005: C-c s c Find functions calling a function. 00006: C-c s C Find called functions (list functions called 00007: from a function). 00008: C-c s t Find text string. 00009: C-c s e Find egrep pattern. 00010: C-c s f Find a file. 00011: C-c s i Find files #including a file. 00012: 00013: 下面是在搜索到的结果之间切换用的快捷键: 00014: 00015: C-c s b Display *cscope* buffer. 00016: C-c s B Auto display *cscope* buffer toggle. 00017: C-c s n Next symbol. 00018: C-c s N Next file. 00019: C-c s p Previous symbol. 00020: C-c s P Previous file. 00021: C-c s u Pop mark.