вторник, 12 января 2010 г.

How do I bind square bracket keys in emacs?

Most emacs manuals and tutorials state that to bind a key to a function you must do something like

(local-set-key [M-.] 'gtags-find-tag)


Weirdly, none of them answer a question that came to my mind almost immediately: how do you bind a "[" key itself?

Well, after some time I succeeded with that:

(local-set-key (kbd "M-[") 'gtags-find-rtag)

Комментариев нет:

Отправить комментарий