From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bernardo Newsgroups: gmane.emacs.help Subject: Re: enter key behaviour Date: Sun, 14 Jun 2009 16:10:45 +1000 Message-ID: <4A349465.7090509@pobox.com> References: <20090612133824.51238d57@gom> Reply-To: bernardo.bacic@pobox.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1244960101 23521 80.91.229.12 (14 Jun 2009 06:15:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Jun 2009 06:15:01 +0000 (UTC) To: help-gnu-emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 14 08:14:58 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 1MFizY-0007Tw-Hy for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jun 2009 08:14:56 +0200 Original-Received: from localhost ([127.0.0.1]:57368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFizX-0000Hk-Ue for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jun 2009 02:14:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFix2-0007ul-82 for help-gnu-emacs@gnu.org; Sun, 14 Jun 2009 02:12:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFiwv-0007sP-Vb for help-gnu-emacs@gnu.org; Sun, 14 Jun 2009 02:12:18 -0400 Original-Received: from [199.232.76.173] (port=48053 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFiwv-0007sL-Pz for help-gnu-emacs@gnu.org; Sun, 14 Jun 2009 02:12:13 -0400 Original-Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:63889 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MFiwv-0003UK-IV for help-gnu-emacs@gnu.org; Sun, 14 Jun 2009 02:12:13 -0400 Original-Received: from localhost.localdomain (unknown [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 49A75BB34D for ; Sun, 14 Jun 2009 02:12:11 -0400 (EDT) Original-Received: from [192.168.1.10] (unknown [220.233.188.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 8752ABB34C for ; Sun, 14 Jun 2009 02:12:10 -0400 (EDT) User-Agent: Thunderbird 2.0.0.21 (X11/20090302) In-Reply-To: <20090612133824.51238d57@gom> X-Pobox-Relay-ID: 4C1C16D0-58AA-11DE-BCE8-97731A10BFE7-14340206!a-sasl-fastnet.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:65278 Archived-At: prad said the following on 13/06/09 06:38: > in sh and php modes, pushing the enterkey takes you to the beginning of > the line, while C-j puts you at the beginning of the indent. > > however, in python-mode (at least the one i have on archlinux), > enterkey and C-j both take you to beginning of the indent. > > is this something i can change using emacs customizations (if so, > where?), or should i try to edit the python-mode script? > C-h will tell you what the key is bound to there are a few ways to rebind it to something else: * define-key * local-set-key * global-set-key for more info see M-: (info "(Emacs)Key Bindings")