emacs-devel
[Top][All Lists]
Advanced

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

Re: New define-key syntax with custom keymap


From: Lars Ingebrigtsen
Subject: Re: New define-key syntax with custom keymap
Date: Tue, 19 Oct 2021 15:52:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Manuel Uberti <manuel.uberti@inventati.org> writes:

> following the recent changes on master, I am trying to use the new
> syntax to define key bindings. The following works as expected:
>
> (global-set-key ["C-M-z"] #'mu-indent-defun)
>
> But these do not work:
>
> (define-key mu-keys-mode-map ["C-<return>"] #'mu-open-line-below)
> (define-key mu-keys-mode-map ["C-c C-n"] #'mu-cleanup-buffer)

I don't have the mu mode, but I tried:

(define-key gnus-summary-mode-map ["C-c C-n"] #'mu-cleanup-buffer)
C-h c C-n C-n

=>

C-c C-n runs the command mu-cleanup-buffer

So it works for me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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