summaryrefslogtreecommitdiff
path: root/lisp/sync-ui.el
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-08-11 19:58:55 +0200
committercashmere <cashmere@autistici.org>2026-08-11 19:58:55 +0200
commitef17a1971b70695f8b10b8ae4736be07d46c0974 (patch)
tree80b22b4e916b85031c43759b4839ea84d9e5472e /lisp/sync-ui.el
parente08aa0aa02efe771973a5eb0fdf6b77c3c7d29ad (diff)
downloademacs-ef17a1971b70695f8b10b8ae4736be07d46c0974.tar.gz
2026-08-11T19:59:00+02:00
Diffstat (limited to 'lisp/sync-ui.el')
-rw-r--r--lisp/sync-ui.el17
1 files changed, 5 insertions, 12 deletions
diff --git a/lisp/sync-ui.el b/lisp/sync-ui.el
index e8ee3d7..36a8815 100644
--- a/lisp/sync-ui.el
+++ b/lisp/sync-ui.el
@@ -31,7 +31,7 @@
;; t auto/ask a add repo d remove g refresh
;; n/p next/prev q quit
;;
-;; Evil: normal state gets j/k plus the same one-key actions.
+;; Helix: normal state gets j/k plus the same one-key actions.
;;; Code:
@@ -916,18 +916,11 @@ A ⁺ marks a remote that has no copy of the branch yet."
(face-remap-set-base 'hl-line 'sync-ui-selected)
(hl-line-mode 1))
-(declare-function evil-set-initial-state "evil")
-(declare-function evil-define-key* "evil-core")
-(with-eval-after-load 'evil
- (evil-set-initial-state 'sync-ui-mode 'normal)
- ;; `evil-define-key' is a macro: calling it from a file byte-compiled
- ;; without evil loaded yields (invalid-function evil-define-key).
- ;; `evil-define-key*' is the function underneath and is always safe.
- (evil-define-key* 'normal sync-ui-mode-map
- (kbd "j") #'sync-ui-next
- (kbd "k") #'sync-ui-previous
- (kbd "RET") #'sync-ui-magit))
+(with-eval-after-load 'helix
+ (helix-define-key 'normal "j" #'sync-ui-next 'sync-ui-mode)
+ (helix-define-key 'normal "k" #'sync-ui-previous 'sync-ui-mode)
+ (helix-define-key 'normal "RET" #'sync-ui-magit 'sync-ui-mode))
;;; § 8 Entry points