diff --git a/layers/+source-control/github/README.org b/layers/+source-control/github/README.org index a649aac30..21785171f 100644 --- a/layers/+source-control/github/README.org +++ b/layers/+source-control/github/README.org @@ -88,10 +88,13 @@ In the gist list buffer: ** Clone repositories -| Key Binding | Description | -|---------------+--------------------------------------| -| ~SPC g h C-c~ | clone and optionally fork repository | -| ~SPC g h s~ | search for and clone repository | +| Key Binding | Description | +|---------------+----------------------------------------------------------| +| ~SPC g h c /~ | search for a repository to clone it | +| ~SPC g h c c~ | clone and optionally fork repository | +| ~SPC g h c r~ | add a remote that is an existing fork of selected remote | +| ~SPC g h c f~ | fork remote in current user namespace | +| ~SPC g h c u~ | add upstream as remote | ** Browse files diff --git a/layers/+source-control/github/packages.el b/layers/+source-control/github/packages.el index a10173dea..68b23b685 100644 --- a/layers/+source-control/github/packages.el +++ b/layers/+source-control/github/packages.el @@ -47,16 +47,18 @@ (use-package github-clone :defer t :init - (spacemacs/set-leader-keys - "gh C-c" 'github-clone - "ghr" 'github-clone-add-existing-remote - "ghf" 'github-clone-fork-remote - "ghu" 'github-clone-add-source-remote))) + (progn + (spacemacs/declare-prefix "ghc" "clone") + (spacemacs/set-leader-keys + "ghcc" 'github-clone + "ghcr" 'github-clone-add-existing-remote + "ghcf" 'github-clone-fork-remote + "ghcu" 'github-clone-add-source-remote)))) (defun github/init-github-search () (use-package github-search :commands (github-search-clone-repo github-search-user-clone-repo) - :init (spacemacs/set-leader-keys "ghs" 'github-search-clone-repo))) + :init (spacemacs/set-leader-keys "ghc/" 'github-search-clone-repo))) ;; magit-gh-pulls has to be loaded via a pre-config hook because the source code ;; makes assumptions about the status of the magit-mode keymaps that are