A prompt is displayed listing `g' and `l' as possible keys;
pressing 'g' or `l' changes the font size; pressing any other key
exits the hydra.
No prompt is displayed. Only "f2-" is displayed in the echo area.
Pressing `g' or `l' changes font size as expected and _after_
pressing either `g' or `l' at least once, a hydra prompt is
displayed and subsequently pressing any other key exits the hydra
as expected. However, if a key other than `g' of `l' is pressed
before either `g' or `l' is pressed an error message is displayed.
E.g. pressing `n' produces
<f2> n is undefined
After the error message is printed, text typed in the buffer at
point is coloured red. [Presumably text properties or an overlay
that was meant to go in the minibuffer were applied at point.]
Re: getting started with the `hydra' package from GNU Elpa -- fail with simplest example
At 06:19 +0200 on Monday 2017-09-18, Marcin Borkowski wrote:
> I do not know how the `global-key' option is supposed to work, but did
> you try just saying
> (global-set-key (kbd "<f2>") 'hydra-zoom/body)
> instead of `global-key' after the hydra is defined?