Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

yukihr/emacs-pow

Repository files navigation

emacs-pow

Pow (http://pow.cx) apps management on Emacs. It's powder(Command Line) or Anvil(GUI) for Emacs.

Install

Emacs24 or above is supported.

Package

Melpa

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))

From Raw Repository

  1. Clone to local.

    git clone https://github.com/yukihr/emacs-pow.git
    
  2. Add following lines to your init file and restart Emacs.

    (add-to-list 'load-path "path/to/emacs-pow")
    (require 'pow)
    

Basic Usage

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-.

Listing Apps

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

Sample Settings

(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)

Contributing

If you are interested in project, pullreqs are welcome!

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Edit sources, add your features, or fix bugs.
  4. Check if all test passes (make) make sure you are using emacs>=24 with make emacs-version
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

Bug reports, feature requests are also welcome! Please put on issue.

About

Pow (http://pow.cx) apps management on emacs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published