all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* define-key gives key-sequence not defined
@ 2021-06-01  3:47 michael.franzese
  0 siblings, 0 replies; 3+ messages in thread
From: michael.franzese @ 2021-06-01  3:47 UTC (permalink / raw)
  To: Help Gnu Emacs

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".




^ permalink raw reply	[flat|nested] 3+ messages in thread

* define-key gives key-sequence not defined
@ 2021-06-01  4:34 michael.franzese
  2021-06-01  7:38 ` Marcin Borkowski
  0 siblings, 1 reply; 3+ messages in thread
From: michael.franzese @ 2021-06-01  4:34 UTC (permalink / raw)
  To: Help Gnu Emacs

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".




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: define-key gives key-sequence not defined
  2021-06-01  4:34 michael.franzese
@ 2021-06-01  7:38 ` Marcin Borkowski
  0 siblings, 0 replies; 3+ messages in thread
From: Marcin Borkowski @ 2021-06-01  7:38 UTC (permalink / raw)
  To: michael.franzese; +Cc: Help Gnu Emacs


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-01  7:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-01  3:47 define-key gives key-sequence not defined michael.franzese
  -- strict thread matches above, loose matches on Subject: below --
2021-06-01  4:34 michael.franzese
2021-06-01  7:38 ` Marcin Borkowski

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.