Skip to content

Instantly share code, notes, and snippets.

@jwiegley
Created July 12, 2025 00:27
Show Gist options
  • Save jwiegley/0494d9620eef9b0ee6ef076dd5330f12 to your computer and use it in GitHub Desktop.
Save jwiegley/0494d9620eef9b0ee6ef076dd5330f12 to your computer and use it in GitHub Desktop.
(pretty-hydra-define
multiple-cursors
(:color teal :quit-key "q")
("Mark/Unmark"
(("c" mc/mark-all-dwim "DWIM")
("A" mc/mark-all-in-region "in region")
("r" mc/mark-all-regexp "regexp")
("%" mc/mark-all-in-region-regexp "re in region")
("<C-m> ." ace-mc-add-multiple-cursors "ace add")
("<C-m> M-." ace-mc-add-single-cursor "ace add sing")
("<C-m> C-d" mc/remove-current-cursor "remove current")
("<C-m> C-k" mc/remove-cursors-at-eol "remove at eol")
("<C-m> M-d" mc/remove-duplicated-cursors "remove dups")
("^" mc/edit-beginnings-of-lines "line begin")
("`" mc/edit-beginnings-of-lines "line begin")
("$" mc/edit-ends-of-lines "line end")
("'" mc/edit-ends-of-lines "line end")
("<C-m> <" mc/mark-all-above "longer above")
("<C-m> >" mc/mark-all-below "longer below"))
"Like This"
(("a" mc/mark-all-like-this-dwim "all DWIM")
("w" mc/mark-next-like-this-word "next word")
("W" mc/mark-all-words-like-this "all words")
("y" mc/mark-next-like-this-symbol "next symbol")
("Y" mc/mark-all-symbols-like-this "all symbols")
("x" mc/mark-more-like-this-extended "extended")
("(" mc/mark-all-symbols-like-this-in-defun "syms in defun")
("C-(" mc/mark-all-words-like-this-in-defun "words in defun")
("M-(" mc/mark-all-like-this-in-defun "all in defun")
("<C-m> M-C-f" mc/mark-next-sexps "next sexps")
("<C-m> M-C-b" mc/mark-previous-sexps "prev sexps")
("<C-m> = c" mc-calc "calc")
("<C-m> = =" mc-calc-eval "eval")
("<C-m> = g" mc-calc-grab "grab")
("<C-m> = b" mc-calc-copy-to-buffer "copy"))
"Utils"
(("l" mc/insert-letters "letters")
("n" mc/insert-numbers "numbers")
("R" mc/reverse-regions "reverse")
("S" mc/sort-regions "sort")
("[" mc/vertical-align-with-space "align with space")
("{" mc/vertical-align "align")
("<C-m> |" mc/move-to-column "-> col")
("<C-m> ~" mc/compare-chars "cmp chr")
("s" set-rectangular-region-anchor "rect anchor")
("C-y" yank-rectangle "yank rect")
("<C-m> ]" mc/rect-rectangle-to-multiple-cursors "rect to mult")
("t" mc/mark-sgml-tag-pair "tag pair")
("C-x" reactivate-mark "activate mark")
("C-SPC" mc/mark-pop "mark pop")
("<C-m> f" mc/freeze-fake-cursors-dwim "freeze fake"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment