[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Very Specific Key Press Behaviour
From: |
Joost Kremers |
Subject: |
Re: Very Specific Key Press Behaviour |
Date: |
22 Jun 2009 21:16:51 GMT |
User-agent: |
slrn/0.9.9 (Linux) |
Nordlöw wrote:
> How can I bind an action to a key when it is pressed the n:th time,
> possibly with different behaviour the 3:rd time compared to the 2:nd
> and 1:st time.
this is essentially what yank-pop (bound to M-y) does. so check out its
implementation in simple.el. basically, you need the variables last-command
and this-command.
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)