금요일, 8월 18, 2006

Emacs + Cscope + Java

How to enable Java context searching Emacs by using cscope?

* Add 'java' file type to cscope-indexer script file.
* egrep -i '\.([chly](xx|pp)*|cc|hh|java)$'

* Add 'java mode hook' to xcscope.el lisp file.
* (add-hook 'java-mode-hook (function cscope:hook))

That's all. Now you can browsing Java symbol by using cscope whithin Emacs.

댓글 없음: