[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/diff-hl 8f4c235: Integrate with repeat-mode
From: |
ELPA Syncer |
Subject: |
[elpa] externals/diff-hl 8f4c235: Integrate with repeat-mode |
Date: |
Fri, 9 Apr 2021 21:57:07 -0400 (EDT) |
branch: externals/diff-hl
commit 8f4c2358ac00e32d261f7e77b29af60adfdf0e41
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Integrate with repeat-mode
---
diff-hl.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/diff-hl.el b/diff-hl.el
index 143122f..6869d8e 100644
--- a/diff-hl.el
+++ b/diff-hl.el
@@ -40,6 +40,8 @@
;; `diff-hl-reset-reference-rev'
;;
;; The mode takes advantage of `smartrep' if it is installed.
+;;
+;; Alternatively, it integrates with `repeat-mode' (Emacs 28+).
;; Add either of the following to your init file.
;;
@@ -690,6 +692,15 @@ The value of this variable is a mode line template as in
(scan diff-hl-command-map)
(smartrep-define-key diff-hl-mode-map diff-hl-command-prefix
smart-keys))))
+;; Integrate with `repeat-mode' in Emacs 28 (https://debbugs.gnu.org/47566)
+;;
+;; While smartrep feels solid, it looks kinda abandoned. And the
+;; chances of it being put into GNU ELPA are slim too.
+(map-keymap
+ (lambda (_key cmd)
+ (put cmd 'repeat-map 'diff-hl-command-map))
+ diff-hl-command-map)
+
(declare-function magit-toplevel "magit-git")
(declare-function magit-unstaged-files "magit-git")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/diff-hl 8f4c235: Integrate with repeat-mode,
ELPA Syncer <=