From: Bernardo <bernardo.bacic@pobox.com>
To: help-gnu-emacs@gnu.org
Subject: Re: enter key behaviour
Date: Mon, 15 Jun 2009 17:36:48 +1000 [thread overview]
Message-ID: <4A35FA10.7000406@pobox.com> (raw)
In-Reply-To: <20090614004324.1bea22a8@gom>
prad said the following on 14/06/09 17:43:
> On Sun, 14 Jun 2009 16:16:41 +1000
>>
> so i just commented out this line
> (define-key py-mode-map "\C-m" 'py-newline-and-indent)
> in the python-mode.el file to get the desired behavior.
>
there's nothing from stopping you do it that way, but if you share your
PC with other users, or if you don't want your changes to be clobbered
when you upgrade GNU Emacs/python-mode it may be better to put
customisations into your init (.emacs) file
probably something along the lines (not tested):
(add-hook 'python-mode-hook
(lambda ()
(define-key py-mode-map "\C-m" 'newline))) ; or the function you want
also, as an alternative to "\C-m" have a look at the kbd macro
(kbd "C-m")
C-h f kbd RET
next prev parent reply other threads:[~2009-06-15 7:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-12 20:38 enter key behaviour prad
2009-06-14 6:10 ` Bernardo
2009-06-14 6:16 ` Bernardo
2009-06-14 7:43 ` prad
2009-06-15 7:36 ` Bernardo [this message]
2009-06-15 19:05 ` prad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A35FA10.7000406@pobox.com \
--to=bernardo.bacic@pobox.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.