[Top][All Lists]

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

Re: key map entry for shift-return?

From: Chris Withers
Subject: Re: key map entry for shift-return?
Date: Wed, 08 Jul 2009 14:39:27 +0100
User-agent: Thunderbird (Windows/20090605)

Peter Dyballa wrote:

(add-hook 'python-mode-hook '(lambda () (define-key python-mode-map "S-return" 'newline)))

The first one works, the second one doesn't. What did I do wrong?

I think the syntax needs to use the vector form in this case:

(add-hook 'python-mode-hook '(lambda () (define-key python-mode-map [S-return] 'newline)))

Excellent, that was it, thanks.

Chris - can you guess I don't speak lisp? ;-)

Simplistix - Content Management, Zope & Python Consulting

reply via email to

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