emacs verilog&systemverilog语法支持

emacs默认没有systemverilog的语法支持,可以从下面的网站中下载emacs的verilog&systemverilog语法支持,但是该网站国内似乎上不去,需要翻墙才行。

http://www.verilog.com/verilog-mode.html


下载好上面网站中的el文件后,解压相关的文件到相关目录,然后在.emacs中添加下面的配置就行了,如果需要更复杂的配置,见上面网站的相关说明。

(autoload ‘verilog-mode "verilog-mode" "Verilog mode" t)
(setq auto-mode-alist (cons ‘("\\.v\\’\\|\\.sv[ih]?\\’" . verilog-mode) auto-mod
e-alist))                                                                      
(add-hook ‘verilog-mode-hook ‘(lambda() (font-lock-mode 1)))

Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s