Skip to content

Commit f60997e

Browse files
iv-nnsmile13241324
authored andcommitted
[keyboard-layout] Add ediff remapping
1 parent c0288e8 commit f60997e

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

CHANGELOG.develop

+1
Original file line numberDiff line numberDiff line change
@@ -2395,6 +2395,7 @@ Other:
23952395
- Fixed =bepo= layout, commented out broken evil-window :common bindings
23962396
(thanks to CharlesHD)
23972397
- Added evil-lisp-state mapping (thanks to Damien Picard)
2398+
- Added ediff mapping (thanks to iv-nn)
23982399
**** Kivy
23992400
- Added the =kivy= package (thanks to Nasser Alshammari and Ryota Kayanuma)
24002401
**** LaTeX

layers/+intl/keyboard-layout/README.org

+1
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ The available configurations are:
243243
- avy
244244
- comint
245245
- company
246+
- ediff
246247
- elfeed
247248
- evil
248249
- evil-escape

layers/+intl/keyboard-layout/packages.el

+15
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
avy
1616
comint
1717
company
18+
ediff
1819
elfeed
1920
evil
2021
evil-cleverparens
@@ -105,6 +106,20 @@
105106
"C-k"
106107
"C-l")))
107108

109+
(defun keyboard-layout/pre-init-ediff ()
110+
(kl|config ediff
111+
:description
112+
"Remap `ediff' bindings."
113+
:loader
114+
;; HACK: ediff-mode-map is only defined when ediff is started
115+
(add-hook 'ediff-startup-hook #'(lambda () BODY))
116+
:common
117+
(kl/correct-keys ediff-mode-map
118+
"h"
119+
"j"
120+
"k"
121+
"l")))
122+
108123
(defun keyboard-layout/pre-init-elfeed ()
109124
(kl|config elfeed
110125
:description

0 commit comments

Comments
 (0)