[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 23:45:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Eric Abrahamsen wrote:
> Actually, it wasn't! The transient map
> disappears the first time any key is hit that
> isn't in the map itself. What I wanted was to
> rewire "q", and nothing but "q", until the
> first time that "q" is hit. I can probably
> still get what I want by fooling with the
> KEEP-PRED argument to `set-transient-map',
> but it's not the no-brainer I thought it was.
Here is the minor-mode-that-shuts-off-itself
idea. It has served me well. I wrote it in 2014
but it feels like 10 years ago. Man...
http://user.it.uu.se/~embe8573/emacs-init/caps-back.el
--
underground experts united
http://user.it.uu.se/~embe8573
Re: Single-use keybindings?, Michael Heerdegen, 2017/07/23