有没有好的Emacs项目管理? [英] Is there a good Emacs project management somewhere?

查看:138
本文介绍了有没有好的Emacs项目管理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望在相关框中找到相关的内容...

有没有一个很好的emacs项目管理插件?

Is there a good emacs project management plugin somewhere?

我刚刚玩新的GNU Emacs,需要一些简单的东西;这将使几个文件与项目保持一起,并使我能够编译它们(几乎只是把它们的名字放在编译命令中,...编译file1。file2。file3。)...这几乎是

I'm just playing with new GNU Emacs and need something simple; something that will keep several files together tied with the project, and enable me to compile them (pretty much just put their names in with the compile command, ... compile file1. file2. file3.) ... and that's pretty much it.

推荐答案

还有eproject: http://wiki.github.com/jrockway/eproject

There is also eproject: http://wiki.github.com/jrockway/eproject

如果您愿意,此方法将提供最大的功能写一些Lisp来做你想要的。 Eproject处理管理项目,您添加糖。 (Eproject附带了eproject-extras,这是有用的,并且作为一个例子来说明如何编写你自己的实用程序函数。)

This approach will provide the most functionality if you are willing to write some Lisp to do exactly what you want. Eproject handles managing the projects, you add the sugar over that. (Eproject comes with eproject-extras, which is useful and serves as an example of how to write your own utility functions.)

根据你的需要,这样的函数足够:

For your needs, a function like this would suffice:

(defun compile-my-c-project ()
    (interactive)
    (compile (format "gcc %s -o %s"
                 (reduce (lambda (a b) (format "%s %s" a b))
                         (eproject-list-project-files)) ;; perhaps filter here
                 (eproject-name)))

这将采取所有的项目文件,并生成一个以项目名称命名的可执行文件(通常是包含目录,但可以在.eproject文件中更改)。

This will take all the "project files", and produce an executable named after the project's name (usually the containing directory, but you can change that in the .eproject file).

项目文件可以在项目类型定义或通过.eproject文件中声明,请参阅wiki的例子。

The "project files" can be declared in the project type definition, or via the .eproject file. See the wiki for examples.

(请注意,我们在这里使用compile命令,以便Cx`用于导航到错误。)

(Note that we use the "compile" command here, so that C-x ` works for navigating to errors.)

这篇关于有没有好的Emacs项目管理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆