From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: abbrev-mode wizardry needed Date: Wed, 19 Apr 2006 18:08:56 +0200 Message-ID: References: <1145400330.172655.223820@v46g2000cwv.googlegroups.com> <1145410738.858185.32480@v46g2000cwv.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145464914 5922 80.91.229.2 (19 Apr 2006 16:41:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Apr 2006 16:41:54 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 19 18:41:50 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWFkI-00087K-Vx for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 18:41:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWFkI-0007vf-JV for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Apr 2006 12:41:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-X-Trace: individual.net eykQbKHpQoizQgim+JqCbQ/e5zKNI8bDJp5W3gAC2ISnRdg/ak User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:N6TwTgycvfs6K8FrYKrxCRSKlPo= Original-Xref: shelby.stanford.edu gnu.emacs.help:138850 Original-To: help-gnu-emacs@gnu.org 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:34473 Archived-At: "dmd@3e.org" writes: > I can't seem to figure out how to get RET to go to the end of the next > line rather than to insert a new line, though. > > I tried this: > > (defun end-of-next-line () > (interactive) > (next-line) > (end-of-line)) > > But that doesn't seem to work. No? Did you bind a key to it? How? If I have this: row1 row2 and have point after "1" and do M-x end-of-next-line RET, the point is nicely placed after "2". This binding worked for me: (local-set-key [return] 'end-of-next-line) /Mathias