Skip to content

Instantly share code, notes, and snippets.

@anachronic
Created November 15, 2016 23:49
Show Gist options
  • Save anachronic/2c37b5c12d665bb9e973855151579c61 to your computer and use it in GitHub Desktop.
Save anachronic/2c37b5c12d665bb9e973855151579c61 to your computer and use it in GitHub Desktop.
;; navigating hydra
(defhydra hydra-text (:columns 3)
"Movement and text manipulation hydra"
("i" previous-line "up")
("k" next-line "down")
("j" backward-char "back")
("l" forward-char "forward")
("dd" kill-whole-line "kill the whole line")
("de" kill-line "kill until the end of the line")
("da" my/kill-to-line-beg "kill until beginning of line")
("a" beginning-of-line "beginning of line")
("e" end-of-line "end of line")
("x" delete-char "kill char at point")
("z" zzz-up-to-char "zzz up to char")
("u" undo-tree-undo "undo")
("r" undo-tree-redo "redo")
("wc" capitalize-word "capitalize word")
("wd" downcase-word "downcase word")
("wu" upcase-word "uppercase word")
("h" nil "quit (insert mode)" :color blue)
("q" nil "quit" :color blue))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment