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

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

Re: Single-use keybindings?


From: Emanuel Berg
Subject: Re: Single-use keybindings?
Date: Sun, 23 Jul 2017 07:51:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Eric Abrahamsen wrote:

> Maybe I should be using a minor mode that
> turns itself off after use

You can, I've done exactly that! Create a copy
of the global-map and then
`substitute-key-definition' for a function
that, as you say, turns itself off after doing
its special thing.

But when I did that, I didn't know of that
other thing mentioned already, which is
probably the right way to do it - only it seems
a bit complicated...

If you succeed with a small snippet, feel free
to post it here!

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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