Add SMerge hydra

This commit is contained in:
Adam Goldsmith 2019-02-06 00:20:57 -05:00
parent e1b935d964
commit 89fb36465c
2 changed files with 32 additions and 2 deletions

View File

@ -88,3 +88,32 @@ word: _w_: 1 char _W_: 0 char"
("w" avy-goto-word-1) ("w" avy-goto-word-1)
("W" avy-goto-word-0) ("W" avy-goto-word-0)
("q" nil)) ("q" nil))
(defhydra hydra-smerge
(: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
^^ _l_ower _>_: base/lower _k_ill current
^^ _a_ll _R_efine
^^ _RET_: current _E_diff _q_: cancel
"
("n" smerge-next)
("p" smerge-prev)
("b" smerge-keep-base)
("u" smerge-keep-upper)
("l" smerge-keep-lower)
("a" smerge-keep-all)
("RET" smerge-keep-current)
("\C-m" smerge-keep-current)
("<" smerge-diff-base-upper)
("=" smerge-diff-upper-lower)
(">" smerge-diff-base-lower)
("R" smerge-refine)
("E" smerge-ediff)
("C" smerge-combine-with-next)
("r" smerge-resolve)
("k" smerge-kill-current)
("q" nil :color blue))

View File

@ -415,7 +415,8 @@
:bind (("C-c w" . 'hydra-window/body) :bind (("C-c w" . 'hydra-window/body)
("C-c s" . 'hydra-shortcuts/body) ("C-c s" . 'hydra-shortcuts/body)
("C-c a" . 'hydra-avy/body) ("C-c a" . 'hydra-avy/body)
("C-c c" . 'hydra-mc-manual/body)) ("C-c c" . 'hydra-mc-manual/body)
("C-^" . 'hydra-smerge/body))
:bind* ("C-," . 'hydra-mc/body)) ; I like my binding, stop messing with it :bind* ("C-," . 'hydra-mc/body)) ; I like my binding, stop messing with it
(use-package multiple-cursors :ensure) (use-package multiple-cursors :ensure)