summary refs log tree commit diff
path: root/emacs.d/modules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/modules/module-project.el52
1 files changed, 20 insertions, 32 deletions
diff --git a/emacs.d/modules/module-project.el b/emacs.d/modules/module-project.el
index 13ff1da..9f635ed 100644
--- a/emacs.d/modules/module-project.el
+++ b/emacs.d/modules/module-project.el
@@ -1,4 +1,4 @@
-(defhydra hydra-projectile-other-window (:color teal)
+(defhydra hydra-projectile-other-window (:color teal :columns 2)
   "projectile-other-window"
   ("f"  projectile-find-file-other-window        "file")
   ("g"  projectile-find-file-dwim-other-window   "file dwim")
@@ -6,38 +6,26 @@
   ("b"  projectile-switch-to-buffer-other-window "buffer")
   ("q"  nil                                      "cancel" :color blue))
 
-(defhydra hydra-projectile (:color blue :hint nil)
-  "
-     PROJECTILE: %(projectile-project-root)
-     Find File            Search/Tags          Buffers                Cache
-------------------------------------------------------------------------------------------
-_s-f_: file            _a_: ag                _i_: Ibuffer           _c_: cache clear
- _ff_: file dwim       _g_: update gtags      _b_: switch to buffer  _x_: remove known project
- _fd_: file curr dir   _o_: multi-occur     _s-k_: Kill all buffers  _X_: cleanup non-existing
-  _r_: recent file                                               ^^^^_z_: cache current
-  _d_: dir
-"
-  ("a"   projectile-ag)
-  ("b"   projectile-switch-to-buffer)
-  ("c"   projectile-invalidate-cache)
-  ("d"   projectile-find-dir)
-  ("s-f" projectile-find-file)
-  ("ff"  projectile-find-file-dwim)
-  ("fd"  projectile-find-file-in-directory)
-  ("g"   ggtags-update-tags)
-  ("s-g" ggtags-update-tags)
-  ("i"   projectile-ibuffer)
-  ("K"   projectile-kill-buffers)
-  ("s-k" projectile-kill-buffers)
-  ("m"   projectile-multi-occur)
-  ("o"   projectile-multi-occur)
+(defhydra hydra-projectile (:color teal :columns 4)
+  "Projectile"
+  ("a"   projectile-ag "ag")
+  ("b"   projectile-switch-to-buffer "switch to buffer")
+  ("c"   projectile-invalidate-cache "invalidate cache")
+  ("d"   projectile-find-dir "find dir")
+  ("s-f" projectile-find-file "find file")
+  ("ff"  projectile-find-file-dwim "find file dwim")
+  ("fd"  projectile-find-file-in-directory "find file in dir")
+  ("g"   projectile-regenerate-tags "regenerate tags")
+  ("fg"  projectile-find-tag "find tag")
+  ("i"   projectile-ibuffer "ibuffer")
+  ("K"   projectile-kill-buffers "kill buffers")
+  ("m"   projectile-multi-occur "multi occur")
   ("s-p" projectile-switch-project "switch project")
-  ("p"   projectile-switch-project)
-  ("s"   projectile-switch-project)
-  ("r"   projectile-recentf)
-  ("x"   projectile-remove-known-project)
-  ("X"   projectile-cleanup-known-projects)
-  ("z"   projectile-cache-current-file)
+  ("s"   projectile-switch-project "switch project")
+  ("r"   projectile-recentf "recent file")
+  ("x"   projectile-remove-known-project "remove project")
+  ("X"   projectile-cleanup-known-projects "cleanup project")
+  ("z"   projectile-cache-current-file "cache current file")
   ("`"   hydra-projectile-other-window/body "other window")
   ("q"   nil "cancel" :color blue))