Linux

emacs verilog mode 설치(Linux)

Naan 2012. 12. 27. 13:51
반응형

emacs verilog mode 설치방법입니다.

http://www.verilog.com/register.html  -> 등록

http://www.verilog.com/emacs_install.html  -> 설치방법

사이트 가서 등록하면 메일로 파일이 하나 날라옵니다.(verilog-mode.el.gz)

그걸 다운받아서 압축풀면 verilog-mode.el 파일이 나옵니다. 이 파일을

#Centos 기준

/usr/share/emacs/21.4/lisp

폴더에 verilog-mode.el 복사해서 넣어두고

개인폴더에 .emacs edit 후

(defun prepend-path ( my-path ) (setq load-path (cons (expand-file-name my-path) load-path))) (defun append-path ( my-path ) (setq load-path (append load-path (list (expand-file-name my-path))))) ;; Look first in the directory ~/elisp for elisp files (prepend-path "~/elisp") ;; Load verilog mode only when needed (autoload 'verilog-mode "verilog-mode" "Verilog mode" t ) ;; Any files that end in .v, .dv or .sv should be in verilog mode (add-to-list 'auto-mode-alist '("\\.[ds]?v\\'" . verilog-mode)) ;; Any files in verilog mode should have their keywords colorized (add-hook 'verilog-mode-hook '(lambda () (font-lock-mode 1)))붙여넣기후 사용하시면 됩니다.


반응형

'Linux' 카테고리의 다른 글

리눅스 booting GRUB 암호화  (0) 2013.04.18
sudo 권한설정  (0) 2013.04.01
리눅스 mac address 변경  (0) 2012.12.11
redhat 에서 yum 사용하기  (0) 2012.11.22
DNS 서버유지보수  (0) 2012.11.15