今天基本配好了emacs了!

终于看到ecb和cedet正式版了,今天把YASnippet、ECB、Cedet、Auto-complete都装好了。真是不容易。我用的是Windows平台。 不过装好之后仍有个问题,总提示:

Warning: cedet-called-interactively-p called with 0 arguments, but requires 1

在网上找了很久都未果,看来仍和平台或emacs版本有关,只能继续期待官方更新了。。。,不过并不影写使用。 上个图: [[SNAG_Program-00003.png]]]]

  1. YASnippet安装

下载地址:http://code.google.com/p/yasnippet/ 安装: 下载后解压到某目录下,然后在.emacs中添加

   ; yasnippet
(add-to-list 'load-path
                 "~/.emacs.d/plugins/yasnippet-0.6.1c")
   (require 'yasnippet) ;; not yasnippet-bundle
   (yas/initialize)
   (yas/load-directory "~/.emacs.d/plugins/yasnippet-0.6.1c/snippets")
  1. Auto-complete安装

下载地址:http://cx4a.org/software/auto-complete/index.html ac-fuzzy.png 安装(因为在windows下,所以选择这种方式安装):

    Type M-x load-file RET in the running Emacs or newly launched Emacs. Note that if you want to upgrade auto-complete-mode, you have to install in a newly launched Emacs with -q option. Then input a file name to load which is a path string with adding /etc/install.el to the package directory. For example, if the package directory is ~/tmp/auto-complete-1.2, the file name will be ~/tmp/auto-complete-1.2/etc/install.el.

Then input a directory where Auto Complete will be installed. You need to add a directory to load-path later if load-path doesn't include the directory. The directory is to be ~/.emacs.d by default.

Finally type RET to start installation. After installation, you may see the following buffer and follow instructions to edit .emacs.
  1. Cedet安装

下载地址:http://cedet.sourceforge.net/ symref.png 安装:

    If you are on Windows, and or don't have make for some reason, you can use CEDET's built in project management system to force CEDET to bootstrap itself. You can initiate the build process like this:
cd cedet-1.0pre6
  emacs -Q -l cedet-build.el -f cedet-build
  1. ECB安装

下载地址:http://ecb.sourceforge.net/ ecb.png 安装:

    ; ecb
(add-to-list 'load-path "~/.emacs.d/plugins/ecb-2.40")
;(require 'ecb)
(require 'ecb-autoloads)