[Top][All Lists]

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

Re: Character repeation detection

From: Jambunathan K
Subject: Re: Character repeation detection
Date: Sun, 09 Mar 2014 11:38:39 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Tom <address@hidden> writes:

> Is there a function or package to detect if a character is typed
> repeatedly? E.g. if a is typed 3 or more times in a row (aaa...)
> then call a function.
> Is there an existing solution for this?

    M-s h r \(.\)\1 RET

    (highlight-regexp "\\(.\\)\\1" (quote highlight))

> It would even be better if it had repetition suppression, that is
> if I leave my finger on a key so I type a string of a certain character
> (aaaaaaaaaaaaaaaaaaaaaaaaaaaaa) then after the first 3 repetition
> the function is called and the rest of the repeated characters are
> removed from the keyboard buffer.

reply via email to

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