aboutsummaryrefslogtreecommitdiff
path: root/.config/emacs/lisp/evil-collection/modes/magit-repos
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2026-07-05 01:19:30 -0400
committerJack Jamison <jackqjamison@gmail.com>2026-07-05 01:19:30 -0400
commitbdf9a71ab7baa2b1de9abcfd5df1a9107a55d141 (patch)
treec4524e6c41aa5107211103401dabfaefc81aa882 /.config/emacs/lisp/evil-collection/modes/magit-repos
parentfe3984f541bd32bdfa418afb305b614176b55ca0 (diff)
add a bunch of emacs packages HELP
Diffstat (limited to '.config/emacs/lisp/evil-collection/modes/magit-repos')
-rw-r--r--.config/emacs/lisp/evil-collection/modes/magit-repos/README.org17
-rw-r--r--.config/emacs/lisp/evil-collection/modes/magit-repos/evil-collection-magit-repos.el49
2 files changed, 66 insertions, 0 deletions
diff --git a/.config/emacs/lisp/evil-collection/modes/magit-repos/README.org b/.config/emacs/lisp/evil-collection/modes/magit-repos/README.org
new file mode 100644
index 0000000..babd311
--- /dev/null
+++ b/.config/emacs/lisp/evil-collection/modes/magit-repos/README.org
@@ -0,0 +1,17 @@
+* magit-repos
+
+ Evil bindings for [[https://magit.vc/][magit-repos]] (=magit-list-repositories=).
+
+ Initial state for =magit-repolist-mode= is set to =normal=.
+
+** Key bindings
+
+*** magit-repolist-mode-map (normal state)
+
+ | Command | Original | Evil |
+ |---------------------------+----------+-------|
+ | =magit-repolist-mark= | =m= | =m= |
+ | =magit-repolist-unmark= | =u= | =u= |
+ | =magit-repolist-fetch= | =f= | =f= |
+ | =magit-repolist-status= | =RET= | =RET= |
+ | =magit-list-repositories= | =g= | =gr= |
diff --git a/.config/emacs/lisp/evil-collection/modes/magit-repos/evil-collection-magit-repos.el b/.config/emacs/lisp/evil-collection/modes/magit-repos/evil-collection-magit-repos.el
new file mode 100644
index 0000000..6bd91ec
--- /dev/null
+++ b/.config/emacs/lisp/evil-collection/modes/magit-repos/evil-collection-magit-repos.el
@@ -0,0 +1,49 @@
+;;; evil-collection-magit-repos.el --- Bindings for magit-repos -*- lexical-binding: t -*-
+
+;; Copyright (C) 2015-2016, 2021 Justin Burkett
+
+;; Author: Justin Burkett <justin@burkett.cc>
+;; Maintainer: Justin Burkett <justin@burkett.cc>
+;; James Nguyen <james@jojojames.com>
+;; Pierre Neidhardt <mail@ambrevar.xyz>
+;; Package-Requires: ((emacs "26.3") (evil "1.2.3") (magit "2.6.0"))
+;; Homepage: https://github.com/emacs-evil/evil-collection
+;; Version: 0.0.1
+
+;; This file is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published
+;; by the Free Software Foundation; either version 3, or (at your
+;; option) any later version.
+;;
+;; This file is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+;;
+;; For a full copy of the GNU General Public License
+;; see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+;;; Bindings for magit-repos.
+
+;;; Code:
+(require 'evil-collection)
+(require 'magit-repos nil t)
+
+(defvar magit-repolist-mode-map)
+(defconst evil-collection-magit-repos-maps '(magit-repolist-mode-map))
+
+;;;###autoload
+(defun evil-collection-magit-repos-setup ()
+ "Set up `evil' bindings for `magit-repos'."
+ (evil-set-initial-state 'magit-repolist-mode 'normal)
+ (evil-collection-define-key 'normal 'magit-repolist-mode-map
+ "m" 'magit-repolist-mark
+ "u" 'magit-repolist-unmark
+ "f" 'magit-repolist-fetch
+ (kbd "RET") 'magit-repolist-status
+ (kbd "gr") 'magit-list-repositories)
+ (add-hook 'magit-repolist-mode-hook 'evil-normalize-keymaps))
+
+(provide 'evil-collection-magit-repos)
+;;; evil-collection-magit-repos.el ends here