Questions tagged [hydra]

for questions related to the use of the hydra.el package providing short keybindings for sequences of related commands

The hydra.el package is available from https://github.com/abo-abo/hydra . It provides mechanisms for setting up keybindings so that for example one can type C-c jjkk3j5k instead of C-c j C-c j C-c k C-c k M-3 C-c j M-5 C-c k. Use this tag for questions about usage and customization of such hydras.

24 questions
4
votes
1 answer

Why does this function work with :post but not :pre?

(defhydra windows (global-map "C-c w" :post flash-active-buffer) "window moving" ("o" other-window "other")) (make-face 'flash-active-buffer-face) (set-face-attribute 'flash-active-buffer-face nil :background "red" …
Sean Allred
  • 6,921
  • 18
  • 86
1
vote
1 answer

How to check if a hydra is displaying?

If a hydra is opened, how do we check programmatically that it is actually open and displaying?
zcaudate
  • 647
  • 4
  • 14
0
votes
1 answer

Is it possible to run a helm or other completion command for hydra window?

Spacemacs offers many hydra window to show various keys. (And my question is not specific to spacemacs, just hydra in general) Sometimes there are many commands so it's hard to find what's there. Is it possible to grep on those key descriptions in…
eugene
  • 489
  • 1
  • 6
  • 11
0
votes
1 answer

mark-whole-region and pbcopy without losing current point/region

I wrote a hydra today (I think my very first one) - I always do Meta-| pbcopy after doing a C-x h, so why not let hydra help out: (global-set-key (kbd "C-x h") (defhydra hydra-my-mark-whole-buffer (:body-pre…
american-ninja-warrior
  • 3,903
  • 2
  • 24
  • 44