emacs 使用积累9 文件search与列表speedbar CEDET tabbar doxymacs:Doxygen Doxywizard



Emacs as software development environment:  http://alexott.net/en/writings/emacs-devenv/index.html

 

 

 

1, speedbar, 类似于sourceInsight里面的目录列表;可以列出

    Speedbar是emacs的标准插件,通过命令”M-x speedbar”就可以调出speedbar,默认操作打开一个新的长条frame。Speedbar不仅是一个很方便的文件浏览窗口,而且能个诸如etags,semantic等tag工具结合,方便地显示文件中的tags。再使用”M-x speedbar”关闭,恩,当然关闭frame的方法都可以用来关闭它。

    具体的一些hacks还是要在后面的研究中慢慢补充,自己也不能很好用它。

    想嵌入speedbar到emacs 中。 照这里操作的:http://blog.chinaunix.net/u/7270/showart_328448.html 启动后已经集成好了,就是还要按一下C-x 1 才能正常, 

    想嵌入speedbar到emacs 中。 http://xcf007.blog.51cto.com/471707/850871

;;; (require 'sr-speedbar)  显示: M-x sr-speedbar-open  你可以绑定快捷建。

;;M-x sr-speedbar-refresh-turn-off  关闭自动刷新功能,可以看到稳定的列表,good

(require 'sr-speedbar "/usr/share/emacs/site-lisp/sr-speedbar.el")

(global-set-key [(f5)] 'sr-speedbar-open)

 

 

 

 

2,  如何列出所有TMp4开头的体内呢,类似与sourceInsight里面的输入部分,检索其他相关文件:

 A, gtags;    M-g M-f  --->>>>retutn-->>TMp4-->>>return--->>>list all TMp4开头的文件;

 B, cscope:    C-s s f --->>retutn-->>TMp4-->>>return--->>>list all TMp4开头的文件;

 

 

 

 

 

 3,  CEDET:   Emacs开发环境工具集 

    CEDET是Collection of Emacs Development Environment Tools的缩写,用以将Emacs改装成高级的程序开发工具。它提供了丰富多彩的功能,如工程管理,智能补全,代码生成,UML图等等。这里,介绍一些平时编程中最常使用的三个功能:代码补全,查找定义和查找引用。 在Emacs中使用CEDET  http://blog.csdn.net/intrepyd/article/details/4331877


     Emacs 23.2 自带的Cedet的使用:        http://hi.baidu.com/yangyingchao/blog/item/d89780b72bdec0f931add1c4.html

     用CEDET浏览和编辑C++代码(续) – 使用Emacs 23.2内置的CEDET: http://emacser.com/built-in-cedet.htm

     cedet 官方推荐:  http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html

                               my configuration file for CEDET:   https://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-cedet.el

                             Configuration of CEDET for C/C++ Programming: http://mmmyddd.freeshell.net/blog/Computer/Emacs/config_cedet_for_c_programming

 

   用emacs 建立开发环境,安装ecb和cedet的全过程----》》》》very good

       用emacs 建立开发环境,安装ecb和cedet的全过程  http://blog.csdn.net/hide1713/article/details/1647209

        下载: cedet-1.0pre7.tar.gz           http://sourceforge.net/projects/cedet/files/cedet/1.0pre7/cedet-1.0pre7.tar.gz/download

         解压:tar zxvf cedet-1.0pre7.tar.gz

         make: 

        修改用户目录下面.emacs文件:

            (load-file "/home/leosu/cedet-1.0pre7/common/cedet.el")

           ;;我的是(load-file "~/cedet-1.0/common/cedet.el")

 

       

       emacs 相关模块

          [leosu@leo cedet-1.1]$ ls

              cogre   

              contrib  

              eieio

              speedbar

              common  

              ede

              semantic 

             srecode  

  

 

 

4, ECB

ECB代表的是“Emacs Code Browser”,顾名思义,用以浏览代码。http://blog.csdn.net/intrepyd/article/details/4333893

ECB提供了四个窗口:

2         Directories窗口:显示目录结构;

2         Sources窗口:显示当前目录下的文件列表;

2         Methods窗口:显示当前文件中的函数/类/成员列表;

2         History窗口:显示最近访问过的文件。


       ECB安装   http://blog.csdn.net/eli3716/article/details/5894275

       ECB的安装与使用   http://blog.csdn.net/wybing/article/details/231397

       ECB是CEDET工具包中的一项,必须先安装cedet

let:ECB 2.40- Error: ECB can only be used with cedet [1.0pre6, 1.0.9]! Please install it and restart Emacs!

----->>>>>>>>>>>>>>>>>版本问题解决方案:http://blog.csdn.net/cnsword/article/details/7474119

/home/leosu/ecb-2.40 # vim Makefile 

    #CEDET=c:/Programme/emacs-22.3/site-lisp/package-development/cedet

    CEDET=/home/leosu/cedet-1.1

/home/leosu/ecb-2.40 #  vim ecb-upgrade.el   忽略版本检测部分

;  (when ecb-running-unsupported-emacs

 

   emacs 24安装ecb与cedet  例如fedora17 内置的就是emacs24版本        http://blog.csdn.net/cnsword/article/details/7474119

    用emacs 建立开发环境,安装ecb和cedet的全过程: http://blog.csdn.net/hide1713/article/details/1647209      

 

 

 

 

5, cedet cscope:

    cedet-cscope:  http://www.randomsample.de/cedetdocs/common/cedet/CScope.html    

M-x cedet-cscope-version-check RET --->>To make sure your CScope installation is good, use the command

    .emacs: 

      ;; 配置Semanticdb

     ;; 选择Backends Semanticdb目前默认可以支持的后端是gtags和ctags,通过扩展库也可支持ebrowse和cscope(?)

     (when (cedet-cscope-version-check t) ; Is it ok?

       ;; Configurations for CScope and CEDET.

       (semanticdb-enable-cscope-databases  'c-mode) 

       (semanticdb-enable-cscope-databases  'c++-mode)

       (setq ede-locate-setup-options

         '(ede-locate-cscope        ede-locate-base))

     )


     

    

 

 

5, tabbar

    Tabbar还是很眩的一个插件。下载tabbar插件,然后加载之。在王垠的笔记里有一段对tabbar的操作键定义:

 (require 'tabbar)

(tabbar-mode)

(define-prefix-command 'lwindow-map)

(global-set-key (kbd "<M-up>") 'tabbar-backward-group)

(global-set-key (kbd "<M-down>") 'tabbar-forward-group)

(global-set-key (kbd "<M-left>") 'tabbar-backward)

(global-set-key (kbd "<M-right>") 'tabbar-forward)

    在原来的设置中使用super键来帮定实现tab的移动,但是在Windows下怎么都不灵,就设成了M前缀了。这样就可以使用这些快捷键在这些tabbar中移动了。我基本就使用这些功能,差不多也足够平时的使用了。



6, doxymacs:Doxygen + {X}Emacs Ver:1.8.0  Doxywizard

http://www.360doc.com/content/12/0531/10/5962017_214925829.shtml

#sudo yum install doxygen.i686  doxygen-doxywizard.i686  


Emacs as software development environment:  http://alexott.net/en/writings/emacs-devenv/index.html

 

 

 

1, speedbar, 类似于sourceInsight里面的目录列表;可以列出

    Speedbar是emacs的标准插件,通过命令”M-x speedbar”就可以调出speedbar,默认操作打开一个新的长条frame。Speedbar不仅是一个很方便的文件浏览窗口,而且能个诸如etags,semantic等tag工具结合,方便地显示文件中的tags。再使用”M-x speedbar”关闭,恩,当然关闭frame的方法都可以用来关闭它。

    具体的一些hacks还是要在后面的研究中慢慢补充,自己也不能很好用它。

    想嵌入speedbar到emacs 中。 照这里操作的:http://blog.chinaunix.net/u/7270/showart_328448.html 启动后已经集成好了,就是还要按一下C-x 1 才能正常, 

    想嵌入speedbar到emacs 中。 http://xcf007.blog.51cto.com/471707/850871

;;; (require 'sr-speedbar)  显示: M-x sr-speedbar-open  你可以绑定快捷建。

;;M-x sr-speedbar-refresh-turn-off  关闭自动刷新功能,可以看到稳定的列表,good

(require 'sr-speedbar "/usr/share/emacs/site-lisp/sr-speedbar.el")

(global-set-key [(f5)] 'sr-speedbar-open)

 

 

 

 

2,  如何列出所有TMp4开头的体内呢,类似与sourceInsight里面的输入部分,检索其他相关文件:

 A, gtags;    M-g M-f  --->>>>retutn-->>TMp4-->>>return--->>>list all TMp4开头的文件;

 B, cscope:    C-s s f --->>retutn-->>TMp4-->>>return--->>>list all TMp4开头的文件;

 

 

 

 

 

 3,  CEDET:   Emacs开发环境工具集 

    CEDET是Collection of Emacs Development Environment Tools的缩写,用以将Emacs改装成高级的程序开发工具。它提供了丰富多彩的功能,如工程管理,智能补全,代码生成,UML图等等。这里,介绍一些平时编程中最常使用的三个功能:代码补全,查找定义和查找引用。 在Emacs中使用CEDET  http://blog.csdn.net/intrepyd/article/details/4331877


     Emacs 23.2 自带的Cedet的使用:        http://hi.baidu.com/yangyingchao/blog/item/d89780b72bdec0f931add1c4.html

     用CEDET浏览和编辑C++代码(续) – 使用Emacs 23.2内置的CEDET: http://emacser.com/built-in-cedet.htm

     cedet 官方推荐:  http://alexott.net/en/writings/emacs-devenv/EmacsCedet.html

                               my configuration file for CEDET:   https://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-cedet.el

                             Configuration of CEDET for C/C++ Programming: http://mmmyddd.freeshell.net/blog/Computer/Emacs/config_cedet_for_c_programming

 

   用emacs 建立开发环境,安装ecb和cedet的全过程----》》》》very good

       用emacs 建立开发环境,安装ecb和cedet的全过程  http://blog.csdn.net/hide1713/article/details/1647209

        下载: cedet-1.0pre7.tar.gz           http://sourceforge.net/projects/cedet/files/cedet/1.0pre7/cedet-1.0pre7.tar.gz/download

         解压:tar zxvf cedet-1.0pre7.tar.gz

         make: 

        修改用户目录下面.emacs文件:

            (load-file "/home/leosu/cedet-1.0pre7/common/cedet.el")

           ;;我的是(load-file "~/cedet-1.0/common/cedet.el")

 

       

       emacs 相关模块

          [leosu@leo cedet-1.1]$ ls

              cogre   

              contrib  

              eieio

              speedbar

              common  

              ede

              semantic 

             srecode  

  

 

 

4, ECB

ECB代表的是“Emacs Code Browser”,顾名思义,用以浏览代码。http://blog.csdn.net/intrepyd/article/details/4333893

ECB提供了四个窗口:

2         Directories窗口:显示目录结构;

2         Sources窗口:显示当前目录下的文件列表;

2         Methods窗口:显示当前文件中的函数/类/成员列表;

2         History窗口:显示最近访问过的文件。


       ECB安装   http://blog.csdn.net/eli3716/article/details/5894275

       ECB的安装与使用   http://blog.csdn.net/wybing/article/details/231397

       ECB是CEDET工具包中的一项,必须先安装cedet

let:ECB 2.40- Error: ECB can only be used with cedet [1.0pre6, 1.0.9]! Please install it and restart Emacs!

----->>>>>>>>>>>>>>>>>版本问题解决方案:http://blog.csdn.net/cnsword/article/details/7474119

/home/leosu/ecb-2.40 # vim Makefile 

    #CEDET=c:/Programme/emacs-22.3/site-lisp/package-development/cedet

    CEDET=/home/leosu/cedet-1.1

/home/leosu/ecb-2.40 #  vim ecb-upgrade.el   忽略版本检测部分

;  (when ecb-running-unsupported-emacs

 

   emacs 24安装ecb与cedet  例如fedora17 内置的就是emacs24版本        http://blog.csdn.net/cnsword/article/details/7474119

    用emacs 建立开发环境,安装ecb和cedet的全过程: http://blog.csdn.net/hide1713/article/details/1647209      

 

 

 

 

5, cedet cscope:

    cedet-cscope:  http://www.randomsample.de/cedetdocs/common/cedet/CScope.html    

M-x cedet-cscope-version-check RET --->>To make sure your CScope installation is good, use the command

    .emacs: 

      ;; 配置Semanticdb

     ;; 选择Backends Semanticdb目前默认可以支持的后端是gtags和ctags,通过扩展库也可支持ebrowse和cscope(?)

     (when (cedet-cscope-version-check t) ; Is it ok?

       ;; Configurations for CScope and CEDET.

       (semanticdb-enable-cscope-databases  'c-mode) 

       (semanticdb-enable-cscope-databases  'c++-mode)

       (setq ede-locate-setup-options

         '(ede-locate-cscope        ede-locate-base))

     )


     

    

 

 

5, tabbar

    Tabbar还是很眩的一个插件。下载tabbar插件,然后加载之。在王垠的笔记里有一段对tabbar的操作键定义:

 (require 'tabbar)

(tabbar-mode)

(define-prefix-command 'lwindow-map)

(global-set-key (kbd "<M-up>") 'tabbar-backward-group)

(global-set-key (kbd "<M-down>") 'tabbar-forward-group)

(global-set-key (kbd "<M-left>") 'tabbar-backward)

(global-set-key (kbd "<M-right>") 'tabbar-forward)

    在原来的设置中使用super键来帮定实现tab的移动,但是在Windows下怎么都不灵,就设成了M前缀了。这样就可以使用这些快捷键在这些tabbar中移动了。我基本就使用这些功能,差不多也足够平时的使用了。



6, doxymacs:Doxygen + {X}Emacs Ver:1.8.0  Doxywizard

http://www.360doc.com/content/12/0531/10/5962017_214925829.shtml

#sudo yum install doxygen.i686  doxygen-doxywizard.i686  


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值