非常具体的 CEDET 设置困难
我有以下设置:我正在自定义构建系统下处理 C++ 项目,并且源代码目录在我的开发计算机上不是很稳定,因为我经常在自己的目录中检查某些项目的特定版本(一个源目录,我在其中存储所有源代码)以进行维护或新功能开发,然后在完成后删除它们。我想使用 EDE/CEDET,但我不想将项目定义存储在我的家庭区域中。我真正想要的是某种自动加载器,它似乎存在,但我无法理解文档。有人可以指点我如何设置这样的东西吗?
I have the following setup: I'm working with C++ projects under a custom build system and the source code directories are not very stable on my development machine because I'm constantly checking out specific versions of some projects in their own directories (off of a single source directory where I store all source code) for maintenance or new feature development and then deleting them when I'm finished. I want to use EDE/CEDET, but I don't want to store project definitions in my home area. What I would really like is some sort of auto-loader, which seems to exist, but I can't make sense of the documentation. Can someone please point me to instructions on how to set up such a thing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有几个选项,但我猜测随着您的 C++ 项目出现在一堆随机位置,您希望创建一种自定义方式来自动创建 ede-cpp-root 项目。
如果您查看 ede/ede-cpp-root.el 或 emacs lisp/cedet/ede/cpp-root.el,请在顶部的注释中查找高级示例。这展示了如何在 .emacs 中创建三个简单的函数,并使用在发现时创建新项目的规则。
假设您的每个项目都在这样的目录中:
那么您可能在 MY-FILE-FOR-DIR (来自示例)中具有如下所示的代码:
或者如果每个项目总是有一些特殊文件,例如“. SPECIAL”,您可能
会从一些简单的 Emacs Lisp 代码中获得很多帮助。
There are a few options, but I'm guessing that with your C++ project showing up in a bunch of random locations, you want to create a custom way to auto-create ede-cpp-root projects.
If you look in ede/ede-cpp-root.el, or in emacs lisp/cedet/ede/cpp-root.el, in the comments at the top look for ADVANCED EXAMPLE. This shows how to create three simple functions in your .emacs with rules that will create new projects upon discovery.
Lets say every one of your projects is in a dir like this:
then you might have code in MY-FILE-FOR-DIR (from the example) that looks like this:
or if every project always has some special file, like ".SPECIAL", you might have
It is likely you can get a lot of milage from some simple Emacs Lisp code.