|
From: | Chris Withers |
Subject: | Re: key map entry for shift-return? |
Date: | Wed, 08 Jul 2009 14:39:27 +0100 |
User-agent: | Thunderbird 2.0.0.22 (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 - http://www.simplistix.co.uk
[Prev in Thread] | Current Thread | [Next in Thread] |