all repos — nixfiles @ b0f71978e87f6193897dfe74498cc78b635fcce3

System and user configuration, managed by nix and home-manager

emacs: tweak smerge-resolve hydra
Alan Pearce alan@alanpearce.eu
Tue, 16 Apr 2024 20:56:26 +0200
commit

b0f71978e87f6193897dfe74498cc78b635fcce3

parent

448551198694e42ef4dab99a8fb2d41edd04b571

1 files changed, 7 insertions(+), 7 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -288,15 +288,15 @@ (defhydra unpackaged/smerge-hydra     (:color pink :hint nil :post (smerge-auto-leave))
     "
 ^Move^       ^Keep^               ^Diff^                 ^Other^
-^^-----------^^-------------------^^---------------------^^-------
-_n_ext       _b_ase               _<_: upper/base        _C_ombine
-_p_rev       _u_pper              _=_: upper/lower       _r_esolve
+^^-----------^^-------------------^^---------------------^^-------------
+_C-j_: next  _b_ase               _<_: upper/base        _C_ombine
+_C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
 ^^           _l_ower              _>_: base/lower        _k_ill current
-^^           _a_ll                _R_efine
+^^           _a_ll                _R_efine (words)
 ^^           _RET_: current       _E_diff
 "
-    ("n" smerge-next)
-    ("p" smerge-prev)
+    ("C-j" smerge-next)
+    ("C-k" smerge-prev)
     ("b" smerge-keep-base)
     ("u" smerge-keep-upper)
     ("l" smerge-keep-lower)
@@ -309,7 +309,7 @@ (">" smerge-diff-base-lower)     ("R" smerge-refine)
     ("E" smerge-ediff)
     ("C" smerge-combine-with-next)
-    ("r" smerge-resolve)
+    ("s" smerge-resolve)
     ("k" smerge-kill-current)
     ("w" (lambda ()
            (interactive)