Add hydra for managing default projects
This commit is contained in:
parent
271d87f6a6
commit
d2b17e2fa3
5 changed files with 26 additions and 7 deletions
23
03hydra.el
Normal file
23
03hydra.el
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
(require 'hydra)
|
||||
|
||||
(defhydra hydra-file-switcher-menu (:color teal :hint nil)
|
||||
"
|
||||
^Ivy^ ^Projectile^ ^Magit^
|
||||
^^^^^^^^------------------------------------------------------------------------
|
||||
_a_: ag _s_: Switch project _m_: status
|
||||
_b_: Switch buffer _f_: Find file in project
|
||||
_t_: Find file _g_: ag in current project
|
||||
^^ _c_: invalidate cache
|
||||
"
|
||||
("q" nil "cancel" :color pink)
|
||||
|
||||
("a" counsel-ag)
|
||||
("b" ivy-switch-buffer)
|
||||
("t" counsel-find-file)
|
||||
("s" counsel-projectile-switch-project)
|
||||
("f" counsel-projectile-find-file)
|
||||
("g" counsel-projectile-ag)
|
||||
("c" projectile-invalidate-cache)
|
||||
("m" magit-status))
|
||||
|
||||
(global-set-key (kbd "C-c p") 'hydra-file-switcher-menu/body)
|
||||
Loading…
Add table
Add a link
Reference in a new issue