emacs-devel
[Top][All Lists]
Advanced

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

Re: A simple implementation of context-sensitive keys


From: Sean O'Rourke
Subject: Re: A simple implementation of context-sensitive keys
Date: Wed, 10 Sep 2008 07:14:21 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (darwin)

Tassilo Horn <address@hidden> writes:
> But "good" keys are rare, and so I started writing special
> dispatching commands which DTRT dependend on the context
> they're used in.

TextMate for Mac OS has a similar way of defining key bindings:
basically, a major mode labels regions of a buffer's text, and
keys can be bound to functions only within regions with certain
labels.  It's like font-lock for keys (IIRC, TextMate's
fontification uses these same labels).  I think it's a great
idea, and would like to see some general mechanism for doing it
included in Emacs.

Sean





reply via email to

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