From d01b5194d2054a6fbdb16d7e7103027b1fb95a4a Mon Sep 17 00:00:00 2001 From: Maciej Szlosarczyk Date: Tue, 11 Sep 2018 19:41:39 +0300 Subject: [PATCH] Update programming hydra with some more aligned layout --- 01mac.el | 1 - 03hydra.el | 24 +++++++++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/01mac.el b/01mac.el index 3aef509..74d580d 100644 --- a/01mac.el +++ b/01mac.el @@ -16,7 +16,6 @@ (global-set-key (kbd "C-c \\") 'split-window-right) ;; Split window to the right (global-set-key (kbd "C-c /") 'split-window-below) ;; Split window to the bottom - ;; Move between windows key bindings (global-set-key (kbd "C-c ") 'windmove-left) (global-set-key (kbd "C-c ") 'windmove-right) diff --git a/03hydra.el b/03hydra.el index 4aa8df5..b0cf82c 100644 --- a/03hydra.el +++ b/03hydra.el @@ -26,21 +26,27 @@ _t_: Find file _g_: ag in current project " Programming actions -^Windows^ ^Code Manipulation^ + ^Windows^ ^Code Manipulation^ ^Code Completion^ ^^^^^^^^----------------------------------------------------------------------- -_k_: kill buffer and window _c_: comment line -_sh_: split horizontally _r_: regex replace + _k_: kill buffer and window _c_: comment line _y_: yasnippet +_sh_: split horizontally _r_: regex replace _m_: company _sv_: split vertically _i_: indent region -^^ _a_: align regexp +^^ _a_: align regexp +^^ _e_: eval region " ("q" nil "cancel" :color pink) - ("k" kill-buffer-and-window) + ("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)) + + ("c" comment-line) + ("r" vr/replace) + ("i" indent-region) + ("a" align-regexp) + ("e" eval-region) + + ("y" company-yasnippet) + ("m" company-complete)) (define-key prog-mode-map (kbd "C-c c") 'hydra-programming-actions/body)