senny/cabbage

cabbage project setup file

Closed this issue · 4 comments

Hi

What do you guys think about a .cabbage file which would be loaded after running cabbage-project-ido-find-project within the project path? Just an idea, but It's really handy for me so far.

I use something like this temporary: https://gist.github.com/tonini/5348282

cheers

I got a few questions:

  • What kind of configurations do you intend to put in that file?
  • What happens when you switch to a buffer outside the project?
  • What happens when you switch the perspective? (using persp-switch)
  • At the moment there are just plain emacs lisp functionality in the .cabbage file.
  • If you switch out of the project with cabbage-project-ido-find-project the hook will run again.
  • If you switch using persp-switch nothing happens.

As you can see, there are no concrete thought at the moment, just some ideas. Maybe they will initiate some discussions. 💭

You would need to elaborate on my first question:

What kind of configurations do you intend to put in that file?

"plain emacs lisp" is a bit to general as it referes to a programming language 😄 I'd like to know what you do specifically. (eg. setting variables, declaring functions, changing behavior, etc...) Also if you can share some examples that would be great.

The Idea of having a project file is around for some time. However, as my questions suggest it is not that easy to implement as there are so many special cases that break the behavior.

This discussion is directly related to #113 and I don't think we should keep two issues around. That's why I'm closing this one. It would be great if you can attach your ideas and examples to #113.