Integrated repository, worktree, git stacker, and project manager
17 files

README.md
# pm.el — Emacs integration for `pm` Drives the `pm` CLI from inside Emacs. Recognizes pm containers (`~/.projects/<name>/`) as first-class `project.el` projects, exposes two magit-style transients — `pm-dispatch` (global, `C-x p P`) and `pm-project-dispatch` (current project, `C-x p .`) — and treats every git worktree under a container as a "subproject" of that container. ## Requirements - Emacs 28.1 or newer (built-in `transient`, `cl-defmethod`). - `magit-section` 4.0 or newer — the standalone library, not full magit. Available on MELPA / NonGNU ELPA. Used by every status / list / pool / repo / agent buffer. - `pm` on `$PATH`. ## Install The package is shipped from this repo. Add a `use-package` block to your Emacs config pointing at the directory: ```elisp (use-package pm :load-path "~/.repos/project-manager/integrations/emacs/" :commands (pm-dispatch pm-project-dispatch pm-agent-launch-dispatch pm-refresh pm--project-finder pm-jump-parent pm-jump-sibling) :init (with-eval-after-load 'project (add-hook 'project-find-functions #'pm--project-finder) (add-to-list 'project-switch-commands '(pm-project-dispatch "PM" ?P) t) ;; `?a' after `C-x p p <project>': launch a fresh agent in the ;; just-picked project (claude / codex / cursor). (add-to-list 'project-switch-commands '(pm-agent-launch-dispatch "Agent" ?a) t)) (global-set-key (kbd "C-x p P") #'pm-dispatch) (global-set-key (kbd "C-x p .") #'pm-project-dispatch) (add-hook 'after-init-hook (lambda () (run-with-idle-timer 0.5 nil #'pm-refresh)))) ``` Adjust `:load-path` if the repo lives elsewhere. ## Usage ### `C-x p P` — global pm Grouped by noun (Project / Pool / Repos / Agent), so every action against a given resource sits in one column. The Agent group's `r` enters the agent-launch sub-dispatch (claude / codex / cursor); since there's no bound project at the global level, it prompts. | Group | Key | Command …