[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to set key binding in script run-time
From: |
Emanuel Berg |
Subject: |
Re: How to set key binding in script run-time |
Date: |
Sun, 09 Jun 2019 13:45:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Budi wrote:
> How to set key binding in lisp script
> run-time of emacs ?
>
> if a key binding only will be created with
> late decision as a function is running, how
> should that key binding be constructed and
> accomplished in the run time inside that
> function ?
I suppose, the same way you do it anywhere
else :)
(defun set-key-inside-function ()
(interactive)
(global-set-key
"\C-\\"
(lambda () (interactive) (message "it worked")) ))
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal