wind330

在Windows下配置编辑VHDL的EMACS

0
阅读(2649)

工作来,一直使用UE做为自己的编辑软件,但是需要编辑及检索的代码量越来越大,UE已经提襟见拙了。

近两天来,一直在Google上查询合适的编辑器,有两种选择,分别是Emacs和Elipse,由于自己在工作中有利用NiosII的IDE进行开发,觉得该环境占用较多的内存,并且操作缓慢,所以选择了Emacs。

需要下载下面的选件:

color-theme-6.6.0.zip           ;用于定制Emacs编辑环境的配色插件

emacs-22.3-bin-i386.zip        ;Windows系统下的Emacs

vhdl-mode-3.33.27.zip          ;Emacs用于编辑VHDL的插件

maxframe.el                        ;Emacs打开自动最大化插件

可分别选择一下链接下载:

http://www.emacswiki.org/emacs/ColorTheme

http://ftp.gnu.org/gnu/emacs/windows/

http://www.iis.ee.ethz.ch/~zimmi/emacs/vhdl-mode.html

下载maxframe.el附件;

以下是安装步骤:

1、解压emacs-22.3-bin-i386.zip到你想要的文件夹,如d:\emacs-22.3;

2、运行的d:\emacs-22.3\bin\addpm.exe,将emacs添加到windows开始菜单;

3、分别解压color-theme-6.6.0.zip,及vhdl-mode-3.33.27.zip;将文件vhdl-mode.el、vhdl-mode.elc、color-theme.el、color-theme下的文件夹“themes”、maxframe.el添加到d:\emacs-22.3\site-lisp;

4、在“环境变量”中添加“HOME”变量,值为“d:\emacs-22.3\”;

每个用户都可以用自己的_emacs(下载_emacs附件)配置自己的环境,放在“HOME”变量的路径下,如热键、配色、启动设置等等,该配置是基于Lisp programming language开发,例如:

;;

;; global setting

(set-scroll-bar-mode nil) ;; 去掉滚动条

(tool-bar-mode -1) ;; 去掉工具栏

(setq inhibit-startup-message t) ;;关闭开启画面

(setq scroll-margin 3 scroll-conservatively 10000) ;;防止页面滚动时跳动

(setq show-paren-style 'parentheses) ;; 设置显示括号匹配,但不跳转

 

;; color theme

(require 'color-theme)

(color-theme-initialize); initialize color-theme

(color-theme-pok-wog); load my theme

 

(require 'maxframe)

(add-hook 'window-setup-hook 'maximize-frame t)

 

;; wind330 hotkey

(global-set-key [?\S- ] 'set-mark-command) ;; 按键shift+space为set-mark命令,避免与ctrl+space冲突;

(setq-default tab-width 2) ;; 制表符宽度为2个空格

下面提供几个Emacs学习网址:

http://www.gnu.org/software/emacs/index.html#dir

http://zhdotemacs.sourceforge.net/emacs/index.html

http://www.emacswiki.org/

本人对Emacs来说是一个彻底的新人,通过这两天的学习也发现学习Emacs应该是一个漫长的过程,相关教程也很少,但是Emacs确实有利于提高编辑速度,需要慢慢积累;由于Emacs功能非常多,我建议自己从最基本的文字编辑学起,可以参考emacswiki下的“Emacs 中的基本文字编辑”。