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

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

Re: key interception in major mode


From: Stefan Monnier
Subject: Re: key interception in major mode
Date: Tue, 17 Jan 2006 23:04:18 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Thank you for your reply.
> I want to handle all the aphabetic characters.  Of cource I could
> (define-key) for all of them, but it is not a clean solution either.

> For example, it should be possible to track all the keypresses for
> certaiin buffer. Another example: I want to write a mode, where every
> word starts with a capital letter. So on every character typed I should
> insert upper or lower case letter.

Check autocap.el for an example.  I'm not sure what it uses, tho.
In any case, I guess post-command-hook is one way to do it.
auto-fill-function is another.


        Stefan


reply via email to

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