all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: prad <prad@towardsfreedom.com>
To: help-gnu-emacs@gnu.org
Subject: Re: enter key behaviour
Date: Mon, 15 Jun 2009 12:05:13 -0700	[thread overview]
Message-ID: <20090615120513.6799b69e@gom> (raw)
In-Reply-To: 4A35FA10.7000406@pobox.com

On Mon, 15 Jun 2009 17:36:48 +1000
Bernardo <bernardo.bacic@pobox.com> wrote:

> it may be better to put 
> customisations into your init (.emacs) file
>
ah this is excellent bernardo!
it's what i originally wanted to do but wasn't sure how to.
your code worked perfectly:
(add-hook 'python-mode-hook
   (lambda ()
     (define-key py-mode-map "\C-m" 'newline))) 

i was trying the define-key ... portion in my .emacs file and of course
it kept being overwritten by python-mode.

so i need to learn elisp properly and have found a good source for it.
thank you.

-- 
In friendship,
prad

                                      ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's






      reply	other threads:[~2009-06-15 19:05 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
2009-06-15 19:05         ` prad [this message]

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=20090615120513.6799b69e@gom \
    --to=prad@towardsfreedom.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.