all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: nljlistbox2@gmail.com (N. Jackson)
To: help-gnu-emacs@gnu.org
Subject: Re: getting started with the `hydra' package from GNU Elpa -- fail with simplest example
Date: Fri, 22 Sep 2017 11:28:54 -0400	[thread overview]
Message-ID: <87tvzu69c9.fsf@moondust.localdomain> (raw)
In-Reply-To: 87r2v4eiza.fsf@jane

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?

Hello Marcin,

No, I hadn't tried that and

  (defhydra hydra-zoom ()
    "zoom"
    ("g" text-scale-increase "in")
    ("l" text-scale-decrease "out"))

  (global-set-key (kbd "<f2>") 'hydra-zoom/body)

does work, indeed. Thank you.

I have submitted a but report [1] to let the maintainer know that his
first/simplest example no longer works.

N.

[1] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28550





      reply	other threads:[~2017-09-22 15:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-17 19:58 getting started with the `hydra' package from GNU Elpa -- fail with simplest example N. Jackson
2017-09-18  4:19 ` Marcin Borkowski
2017-09-22 15:28   ` N. Jackson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tvzu69c9.fsf@moondust.localdomain \
    --to=nljlistbox2@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.