From: Marcin Borkowski <mbork@mbork.pl>
To: michael.franzese@gmx.com
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: define-key gives key-sequence not defined
Date: Tue, 01 Jun 2021 09:38:39 +0200 [thread overview]
Message-ID: <87mtsa9gqo.fsf@mbork.pl> (raw)
In-Reply-To: <trinity-5608def0-d226-49d8-8c09-bc996d859496-1622522062907@3c-app-mailcom-bs01>
On 2021-06-01, at 06:34, michael.franzese@gmx.com wrote:
> Have been using the following keybinding
>
> (define-key emacs-lisp-mode-map
> (kbd "H-o b") #'outline-hide-body)
>
> But I am getting "H-o is undefined".
Do you have `H-o' defined as a prefix key? If not, you could
1. define a keymap, say `my-h-o-map'
2. bind `H-o' to this keymap in `emacs-lisp-mode-map'
3. bind `b' to `outline-hide-body' in `my-h-o-map'.
Hth,
--
Marcin Borkowski
http://mbork.pl
next prev parent reply other threads:[~2021-06-01 7:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-01 4:34 define-key gives key-sequence not defined michael.franzese
2021-06-01 7:38 ` Marcin Borkowski [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-06-01 3:47 michael.franzese
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=87mtsa9gqo.fsf@mbork.pl \
--to=mbork@mbork.pl \
--cc=help-gnu-emacs@gnu.org \
--cc=michael.franzese@gmx.com \
/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.