help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: define-key gives key-sequence not defined


From: Marcin Borkowski
Subject: Re: define-key gives key-sequence not defined
Date: Tue, 01 Jun 2021 09:38:39 +0200
User-agent: mu4e 1.1.0; emacs 28.0.50

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]