Pow (http://pow.cx) apps management on Emacs. It's powder(Command Line) or Anvil(GUI) for Emacs.
Emacs24 or above is supported.
If you haven't set up melpa, add following lines to your init file (like: ~/.emacs.d/init.el
).
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(package-initialize)
After restart emacs (or after execute expressions), execute M-x list-packages
and install pow
.
Below code snippet on your init file helps you to install emacs-pow
automatically when its not installed.
(unless (package-installed-p 'pow)
(package-install 'pow))
-
Clone to local.
git clone https://github.com/yukihr/emacs-pow.git
-
Add following lines to your init file and restart Emacs.
(add-to-list 'load-path "path/to/emacs-pow") (require 'pow)
To regsister your rack project to pow, exec M-x pow-register-current-app
in your project.
And, M-x pow-open-current-app
to open the project app in browser.
M-x pow-restart-current-app
will flag restart
current app.
M-x pow-tail-current-log
will open tail
buffer for app's Pow log.
M-x list-pow-apps
lists all registered pow apps.
For other command reference, try exec M-x apropos-command RET pow-
.
M-x list-pow-apps
lists all apps registered to pow. You can use following commands on each items in listing buffer.
Action | Command Name | Keybind |
---|---|---|
Open app in browser | pow-app-list-open-app |
RET, C-m |
Open path in emacs | pow-app-list-find-app-path |
f |
Rename app | pow-app-list-rename-app |
m |
Unmark app | pow-app-list-mark-unmark |
u |
Unmark all app | pow-app-list-mark-unmark-all |
U |
Mark app as delete | pow-app-list-mark-delete |
d |
Execute mark | pow-app-list-execute |
x |
Refresh buffer | pow-app-list-refresh |
r |
Use with projectile-rails
(setq projectile-rails-keymap-prefix (kbd "C-c ;")) ; I'm accustomed to rinari keybind
(require 'projectile-rails)
(require 'pow)
(define-key projectile-rails-mode-map (kbd "C-c ; w") 'pow-restart-current-app)
(define-key projectile-rails-mode-map (kbd "C-c ; o") 'pow-open-current-app)
(define-key projectile-rails-mode-map (kbd "C-c ; f l") 'pow-tail-current-log)
(define-key projectile-rails-mode-map (kbd "C-c ; f L") 'pow-tail-current-app-log)
If you are interested in project, pullreqs are welcome!
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Edit sources, add your features, or fix bugs.
- Check if all test passes (
make
) make sure you are using emacs>=24 withmake emacs-version
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Bug reports, feature requests are also welcome! Please put on issue.