• (转)emacs安装cedet和ecb


      emacs是个强大的编辑器.在linux/unix下有广泛的使用群体.它既可以当做文字处理软件.也可以作为集成开发环境来用.很多人用emacs编程序的时候只用到了内置的一些模式.其实emacs有个很好的集成开发环境ecb.安装之后可以让emacs有类似VS的样子.和自动补全等诸多功能.本文会指导你在emacs下安装ecb和cedet.

    我其实很懒的.如果网上能找到我也不会写出来了.如何在emacs下安装ecb和cedet的中文文章确实很少.所以我来写一篇.本文内容都可以在.
    ecb            http://ecb.sourceforge.net/
    cedet         http://cedet.sourceforge.net/
    网站上找到.但都是英文的.而且很罗嗦.我这个是精简版.如果还有安装问题.以上面两个网站的内容为主.
    ecb的主要功能是图形界面.有好几种模式可选
    cedet里面又有好几个包semantic是语法分析.eieio是面向对象设计的工具等等

    本文目的:
    指导安装ecb和cedet,搭建c,c++,lisp的开发环境

    前提:
    你有个linux或unix系统.
    GNU emacs

    如果你不能满足这俩个条件,请现安装一个linux发行版.并且安装emacs.

    好吧,那么先展示一下装好的样子.很酷吧.


    更多图片请看http://ecb.sourceforge.net/

    先下载这两个软件的安装包
    ecb      http://ftp1.sourceforge.net/ecb/ecb-2.32.tar.gz
    cedet
    http://sourceforge.net/project/showfiles.php?group_id=17886&release_id=513873

    然后
    tar zxvf ecb-2.32.tar.gz
    tar zxvf cedet-1.0pre4.tar.gz
    cd cedet-1.0pre4
    make
    等cedet生成完毕
    在你的用户目录下面应该有一个.emacs文件(前面有个点).这个文件是emacs的配置文件.现在我们要改这个文件(如果没有就自己创建一个).添加下面一段.注意,load-file那一行的目录要自己改一下
    ;; Load CEDET
    (load-file "你存放cedet的目录/common/cedet.el")
    ;;我的是(load-file "~/cedet-1.0/common/cedet.el")

    ;; Enabling various SEMANTIC minor modes.  See semantic/INSTALL for more ideas.
    ;; Select one of the following:

    ;; * This enables the database and idle reparse engines
    ;;(semantic-load-enable-minimum-features)

    ;; * This enables some tools useful for coding, such as summary mode
    ;;   imenu support, and the semantic navigator
    (semantic-load-enable-code-helpers)

    ;; * This enables even more coding tools such as the nascent intellisense mode
    ;;   decoration mode, and stickyfunc mode (plus regular code helpers)
    ;; (semantic-load-enable-guady-code-helpers)

    ;; * This turns on which-func support (Plus all other code helpers)
    ;; (semantic-load-enable-excessive-code-helpers)

    ;; This turns on modes that aid in grammar writing and semantic tool
    ;; development.  It does not enable any other features such as code
    ;; helpers above.
    ;; (semantic-load-enable-semantic-debugging-helpers)

    这样cedet就装好了

    接下来安装ecb
    在.emacs里面加入

    (add-to-list 'load-path "你放ecb的目录")
    ;;例如(add-to-list 'load-path "~/.emacs.d/ecb-2.32")
    (require 'ecb)

    注意这个段要加在cedet配置的后面

    重启emacs

    在emacs中打开一个c或者c++文件.选tool中的
    Start Code Browser(ECB)
    呵呵,看看有什么变化吧.

    ecb和cedet都有多得吓人的功能.具体请看M-x ecb-show-help 和cedet包里面的install文件.

  • 相关阅读:
    nohup ./startWebLogic.sh >out.log 2>&1 & 解析
    Eclipse debug 断点不能调试 ,Eclipse Unable to install breakpoint in 解决办法
    Servlet工作原理解析(tomcat7、嵌入式服务器)
    Servlet工作原理
    [Java] SpringMVC工作原理之四:MultipartResolver
    SQLite_安装
    leetcode_315_逆序对问题
    git 学习 3
    dubbo与zookeeper
    Kafka安装
  • 原文地址:https://www.cnblogs.com/yts1dx/p/4439052.html
Copyright © 2020-2023  润新知