Getting started with CEDET

不问归期 提交于 2019-12-04 04:54:10

Here's my setup on emacs 24.3.1 on ubuntu 13.04:

(load "~/cedet-snapshot/cedet-devel-load.el")
(semantic-add-system-include "~/misc/include/" 'c++-mode)
(set-default 'semantic-case-fold t)

Here, ~/misc/include/ refers to the includes of some library that you could be using that isn't installed to /usr/include/.

I enable 'semantic-mode occasionally since it can be slow, but after it's enabled, 'semantic-ia-complete-symbol works.

UPD

I was installing a fresh Ubuntu on my new SSD and I've discovered that CEDET stopped working. Here's how I got it back on the track:

cd ~/.emacs.d/semanticdb
rm -rf *

Then in a C++ buffer M-x semantic-force-refresh. It may ask you something about debugging the hooks, just say type y.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!