Emacs python mode question

Alexander Schmolck a.schmolck at gmx.net
Sun Jan 11 13:54:50 CET 2004


jblazi <jblazi at hotmail.com> writes:

> On Sat, 10 Jan 2004 16:25:59 -0600, Skip Montanaro wrote:
> 
> > (define-key esc-map [g] 'goto-line)
> 
> For one reason or the other, this does not work. 

It doesn't work because the above will specifically set ESC-g to goto-line,
which isn't what you want, I guess. Try either of the following:

(global-set-key [(meta g)] 'goto-line)
(global-set-key "\eg" 'goto-line)

Before you save your .emacs you can verify that the command works by pressing
C-xC-e right after the closing ')' and then M-g.

'as



More information about the Python-list mailing list