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

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

Re: Looking for the "best" notation for key-binding


From: Chap Harrison
Subject: Re: Looking for the "best" notation for key-binding
Date: Fri, 21 Sep 2012 09:27:37 -0600
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0

On 09/21/2012 03:24 AM, Peter Dyballa wrote:
Am 21.09.2012 um 01:11 schrieb Chap Harrison:

Isn't there a single, simple, consistent way to create key bindings that will 
always work?
I think the vector notation is a good choice:

        (global-set-key [C-∫]           'backward-sexp) ; A-C-b
        (global-set-key [M-S-return]    'other-window)
        (global-set-key [f1 f5]         'apropos-variable)
        (global-set-key [f3]            'compare-windows)
        (global-set-key [A-f1]          'replace-string)

That looks and sounds straightforward enough.

I don't know elisp. Is there an exhaustive list of how to express all of the key chords using vector notation? For instance, I wouldn't have guessed that the 'return' key was denoted by 'return' - I usually see it written RET.

As to my problem with C-; I strongly suspect my binding is getting stomped by C++ mode. So I'd also appreciate some guidelines on what keys to use or avoid.

Chap






reply via email to

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