반응형
얼마전부터 EMACS를 메인 에디터로 사용하고 있다.

VIM만 사용해 오다 바꾸려니 여러면에서 많이 불편한듯 보인다.
특히 아직 익숙치 않은 CTRL키의 입력이 새끼손까락을 괴롭히는듯하다.
맞는 키보드를 새로 맞추든지 해야지....

잡담은 여기까지 하고,

EMACS의 Verilog-mode는 아래의 주소에 MAIL주소를 등록하면 MAIL로 날라온다.
http://www.verilog.com/register.html


메일에 verilog-mode.el.gz가 첨부되어 오는데 이제 emacs의 load-path상에 설치하면 된다.
load-path는 C-h v load-path를 하면 현재의 path를 볼수있다.

Fedora Linux를 사용하는 나는
/usr/share/emacs/21.4/lisp
첨부파일을 넣고,
SHELL>gunzip verilog-mode.el.gz
로 압축을 풀어준다.


이제 emacs설정파일인 .emacs파일을 열어 다음과 같은 내용을 추가하면 된다.
(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)))

출처 : http://www.verilog.com/emacs_install.html



반응형

+ Recent posts