From fdac9f03fc2ccc794e9ea0a9f390b4d888cd815e Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 15 Dec 2017 00:45:28 -0500 Subject: [PATCH] Move hydra bindings to init.el, make C-, (hydra-mc) not be overridden --- .emacs.d/init-hydra.el | 6 ------ .emacs.d/init.el | 7 ++++++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.emacs.d/init-hydra.el b/.emacs.d/init-hydra.el index 970beff..c71bde7 100644 --- a/.emacs.d/init-hydra.el +++ b/.emacs.d/init-hydra.el @@ -82,9 +82,3 @@ word: _w_: 1 char _W_: 0 char" ("w" avy-goto-word-1) ("W" avy-goto-word-0) ("q" nil)) - -(global-set-key (kbd "C-c w") 'hydra-window/body) -(global-set-key (kbd "C-c s") 'hydra-shortcuts/body) -(global-set-key (kbd "C-c a") 'hydra-avy/body) -(global-set-key (kbd "C-,") 'hydra-mc/body) -(global-set-key (kbd "C-c c") 'hydra-mc-manual/body) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index db4dbbe..60d58f8 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -302,7 +302,12 @@ (use-package hydra :ensure :config ;config is in separate file because it is really big - (load-file "~/.emacs.d/init-hydra.el")) + (load-file "~/.emacs.d/init-hydra.el") + :bind (("C-c w" . 'hydra-window/body) + ("C-c s" . 'hydra-shortcuts/body) + ("C-c a" . 'hydra-avy/body) + ("C-c c" . 'hydra-mc-manual/body)) + :bind* ("C-," . 'hydra-mc/body)) ; I like my binding, stop messing with it (use-package multiple-cursors :ensure)