davidmiller / pony-mode

Django mode for emacs
Other
149 stars 32 forks source link

Newsettings #14

Closed arhpreston closed 12 years ago

arhpreston commented 13 years ago

I often switch between settings files in different projects (e.g., use local_settings.py).

These changes seem [1] to allow me to do that in pony-mode. In .ponyrc I have:

(make-pony-project :python "/home/andrew/publons/venv/bin/python" :settings "local_settings")

[1] Only tested with C-c C-p r

davidmiller commented 13 years ago

Switching settings files seems like eminently desirable phenomena...

Slightly nervous to merge without testing other functionality, but the patch looks good AFAICT - I'll apply it locally and test other functionality when I get the chance.

FYI re .ponyrc

It is anticipated that this file will be depreciated in favour of using dir-locals.el (See #10)

So there is a sense in which I am reluctant to extend it's functionality, however the functionality is likely to just be de-documented at least for the next few releases until a 1.x version.

I see no problem adding this in the interim however, thanks for the patch

arhpreston commented 13 years ago

Yeah I saw the .dir-locals.el issue. I agree that's an important feature.

The patch is written with that in mind; in principle you will just need to extend/modify pony-get-settings-file-basename, or switch to using pony-settings-file-basename.

davidmiller commented 12 years ago

Works great for me, thanks!