Вопрос

I want to bind M- to a function. Here's how

(define-key global-map [(meta insert)] 'vi-open-line)

But when I press M- Emacs says ESC <insertchar> is undefined.

I use Emacs 23 on an Amazon EC2 linux. I work via Putty ssh client.

How can I make M- work?

Thank you.

Это было полезно?

Решение

Emacs is helping you. Try this:

(global-set-key (kbd "ESC <insertchar>") 'vi-open-line)
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top