Add programming hydra
This commit is contained in:
parent
6314c9941e
commit
87ee26bc1d
2 changed files with 23 additions and 7 deletions
23
03hydra.el
23
03hydra.el
|
|
@ -21,3 +21,26 @@ _t_: Find file _g_: ag in current project
|
|||
("m" magit-status))
|
||||
|
||||
(global-set-key (kbd "C-c p") 'hydra-file-switcher-menu/body)
|
||||
|
||||
(defhydra hydra-programming-actions (:color teal :hint nil :columns 4)
|
||||
"
|
||||
Programming actions
|
||||
|
||||
^Windows^ ^Code Manipulation^
|
||||
^^^^^^^^-----------------------------------------------------------------------
|
||||
_k_: kill buffer and window _c_: comment line
|
||||
_sh_: split horizontally _r_: regex replace
|
||||
_sv_: split vertically _i_: indent region
|
||||
^^ _a_: align regexp
|
||||
"
|
||||
("q" nil "cancel" :color pink)
|
||||
|
||||
("k" kill-buffer-and-window)
|
||||
("sh" split-window-below)
|
||||
("sv" split-window-right)
|
||||
("c" comment-line)
|
||||
("r" vr/replace)
|
||||
("i" indent-region)
|
||||
("a" align-regexp))
|
||||
|
||||
(define-key prog-mode-map (kbd "C-c c") 'hydra-programming-actions/body)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue