From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: prad Newsgroups: gmane.emacs.help Subject: Re: enter key behaviour Date: Mon, 15 Jun 2009 12:05:13 -0700 Message-ID: <20090615120513.6799b69e@gom> References: <20090612133824.51238d57@gom> <4A349465.7090509@pobox.com> <4A3495C9.2080402@pobox.com> <20090614004324.1bea22a8@gom> <4A35FA10.7000406@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245124721 18040 80.91.229.12 (16 Jun 2009 03:58:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jun 2009 03:58:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 16 05:58:38 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MGPoj-00048b-SZ for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jun 2009 05:58:38 +0200 Original-Received: from localhost ([127.0.0.1]:56464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGPoj-0004Se-GN for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Jun 2009 23:58:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGHV4-0004ZB-Po for help-gnu-emacs@gnu.org; Mon, 15 Jun 2009 15:05:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGHUw-0004Lh-My for help-gnu-emacs@gnu.org; Mon, 15 Jun 2009 15:05:46 -0400 Original-Received: from [199.232.76.173] (port=39441 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGHUw-0004LD-IS for help-gnu-emacs@gnu.org; Mon, 15 Jun 2009 15:05:38 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:50295 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MGHUv-0000Yc-Rl for help-gnu-emacs@gnu.org; Mon, 15 Jun 2009 15:05:38 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MGHUp-0005kz-Qd for help-gnu-emacs@gnu.org; Mon, 15 Jun 2009 19:05:31 +0000 Original-Received: from 70.67.160.176 ([70.67.160.176]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Jun 2009 19:05:31 +0000 Original-Received: from prad by 70.67.160.176 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Jun 2009 19:05:31 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 70.67.160.176 X-Newsreader: Claws Mail 3.7.1 (GTK+ 2.16.2; x86_64-unknown-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 15 Jun 2009 23:58:18 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65308 Archived-At: On Mon, 15 Jun 2009 17:36:48 +1000 Bernardo 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