Move hydra bindings to init.el, make C-, (hydra-mc) not be overridden

This commit is contained in:
Adam Goldsmith 2017-12-15 00:45:28 -05:00
parent 7d2754c535
commit fdac9f03fc
2 changed files with 6 additions and 7 deletions

View File

@ -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)

View File

@ -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)