rejeep / prodigy.el

Manage external services from within Emacs
GNU General Public License v3.0
550 stars 39 forks source link

add modeline indicator for running prodigy services? #57

Open dakrone opened 10 years ago

dakrone commented 10 years ago

I think it'd be really handy to have way to register a service with a lighter that is displayed on the modeline when running, something like:

(prodigy-define-service
  :name "Elasticsearch"
  :lighter "ES"
  :cwd "..."
  :command "..."
  :tags '(...)
  :port ...)

Then, when running, I could have something in the modeline that looks like [] when nothing is running and [ES] when that service is running. Or [ES,Service1,Service2] if more services are running.

rejeep commented 10 years ago

That would be pretty cool yes. It would be even more awesome if you could put color on each service. Green for started and red for stopped.

To extend this even further, prodigy could add a notification API, where the mode line is one way of showing status. Another could be Growl for example.