Skip to content

Instantly share code, notes, and snippets.

@ptrv
Last active October 23, 2016 08:12
Show Gist options
  • Save ptrv/7d728b7dc4f2113ef915dba3b66f052c to your computer and use it in GitHub Desktop.
Save ptrv/7d728b7dc4f2113ef915dba3b66f052c to your computer and use it in GitHub Desktop.
Hydra for smerge
(defhydra hydra-smerge
(:color red :hint nil
:pre (smerge-mode 1))
"
^Move^ ^Keep^ ^Diff^ ^Pair^
------------------------------------------------------
_n_ext _b_ase _R_efine _<_: base-mine
_p_rev _m_ine _E_diff _=_: mine-other
^ ^ _o_ther _C_ombine _>_: base-other
^ ^ _a_ll _r_esolve
_q_uit _RET_: current
"
("RET" smerge-keep-current)
("C" smerge-combine-with-next)
("E" smerge-ediff)
("R" smerge-refine)
("a" smerge-keep-all)
("b" smerge-keep-base)
("m" smerge-keep-mine)
("n" smerge-next)
("o" smerge-keep-other)
("p" smerge-prev)
("r" smerge-resolve)
("<" smerge-diff-base-mine)
("=" smerge-diff-mine-other)
(">" smerge-diff-base-other)
("q" nil :color blue))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment