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

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

Re: define-key with command arguments


From: Marcin Borkowski
Subject: Re: define-key with command arguments
Date: Wed, 10 Feb 2021 18:37:30 +0100
User-agent: mu4e 1.1.0; emacs 28.0.50

On 2021-02-10, at 13:00, Adam Kandur via Users list for the GNU Emacs text 
editor <help-gnu-emacs@gnu.org> wrote:

> hi everyone! is it possible to do something like his
>
> (define-derived-mode test special-mode "test"
>  (define-key test-func (kbd "SPC") 'test-func-with (arg)))
> so, i wanna pass variable in function i'm going to run with keyboard binding. 
> is it possible?

Not sure if I understand what you are trying to accomplish (and whether
you already know about what I'm going to tell you), but you might want
to check the various forms of the `interactive' form, too.

Best,

--
Marcin Borkowski
http://mbork.pl



reply via email to

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