help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: key map entry for shift-return?


From: Peter Dyballa
Subject: Re: key map entry for shift-return?
Date: Wed, 8 Jul 2009 14:42:52 +0200


Am 08.07.2009 um 13:51 schrieb Chris Withers:

(add-hook 'python-mode-hook '(lambda () (define-key python-mode-map "\C-m" 'newline-and-indent)))

(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)))

--
Greetings

  Pete       (:
        _    / __    -    -
      _/ \__/_/        -     -
     (´`)      (´`)   -    -
      `´        `´







reply via email to

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