打印

在windows下配置编辑VHDL的Emacs

[复制链接]
1716|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
lxAPP|  楼主 | 2012-10-16 20:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
工作两年来,一直使用UE做为自己的编辑软件,但是需要编辑及检索的代码量越来越大,UE已经提襟见拙了。
近两天来,一直在Google上查询合适的编辑器,有两种选择,分别是EmacsElipse,由于自己在工作中有利用NiosIIIDE进行开发,觉得该环境占用较多的内存,并且操作缓慢,所以选择了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.elvhdl-mode.elccolor-theme.elcolor-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+spaceset-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/




另外也可以配置verilog mode。下面是相关网站
http://www.verilog.com/emacs_install.html

emacs确实值得一学。有时间一定要学习一下。由于工作需要现在还是继续用我的Ultraedit编辑器吧。Ultraedit也是不错的,虽然现在还没有完全的弄懂它。

相关帖子

沙发
GoldSunMonkey| | 2012-10-16 21:48 | 只看该作者
windows下不错的工具。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

58

主题

483

帖子

2

粉丝