views:

1991

answers:

3

Was hoping to find something relevant in the "related" box ...

Is there a good emacs project management plugin somewhere?

I'm just playing with new gnumacs and need something simple; something which is gonna 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, ... compiler file1. file2. file3.) ... and that's pretty much it.

+3  A: 

I believe that CEDET may have what you are looking for.

docgnome
Yes, EDE library can do this. Please look to my answer to previous question - http://stackoverflow.com/questions/749888/is-there-a-good-way-to-do-emacs-project
Alex Ott
+6  A: 

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

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)))

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).

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

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

jrockway
A: 

Makefiles really are what you want. They work fine with windows (msys) and fortran.

ben