davidmiller / pony-mode

Django mode for emacs
Other
149 stars 32 forks source link

Key bindings tweaks #25

Open semente opened 12 years ago

semente commented 12 years ago

When I do C-c p r and a *ponyserver* buffer already exists instead show a error message saying a server is already running it should show the buffer *ponyserver* (as happens to a start a server).

Inside the *ponyserver*, the key binding C-c p r should restart the server.

I suppose it is a good behavior since I find similar ones in many Emacs stuff.

Consider the same suggestion above to C-c p s.

Thank you!

davidmiller commented 12 years ago

a3c12ec probably isn't a complete fix - to get the same behaviour in projects without a .dir-locals.el will need some more work on the creation of processes.

Will need to set a bunch of local state on buffers without an associated file & make sure that we fall back to (?? or default to) that state when there isn't a file in the project hierarchy.