From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?Q?Stawrul?= Newsgroups: gmane.emacs.help Subject: Re: How can I move my cursor 80 characters with a key binding? Date: Sun, 25 Dec 2005 23:26:37 +0100 Message-ID: <20051225222637.563DB54A83@rekin17.go2.pl> References: <2089451.post@talk.nabble.com> <20051225062518.GD9520@setzer.hsd1.tx.comcast.net> <2091468.post@talk.nabble.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset="iso-8859-2"; Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1135549633 21669 80.91.229.2 (25 Dec 2005 22:27:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Dec 2005 22:27:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 25 23:27:12 2005 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 1EqeKY-0002F3-Ax for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Dec 2005 23:27:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqeLi-0004jY-V0 for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Dec 2005 17:28:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EqeLM-0004f6-Jh for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 17:27:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EqeLL-0004eW-Ai for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 17:27:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EqeLK-0004eQ-Kl for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 17:27:55 -0500 Original-Received: from [193.17.41.34] (helo=rekin17.go2.pl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EqeL2-0003PA-TF for help-gnu-emacs@gnu.org; Sun, 25 Dec 2005 17:27:37 -0500 Original-Received: from poczta.o2.pl (localhost [127.0.0.1]) by rekin17.go2.pl (Postfix) with ESMTP id 563DB54A83 for ; Sun, 25 Dec 2005 23:26:37 +0100 (CET) Original-To: help-gnu-emacs@gnu.org X-Mailer: o2.pl WebMail v5.28 X-Originator: 81.190.189.61 In-Reply-To: <2091468.post@talk.nabble.com> 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:32229 Archived-At: >=20 > Does anyone know an easier way to cursor around a very long line?=20 I'm pretty frustrated with how I can't simply hit the up arrow and=20 move up to the previous line on the screen (which is actually part=20 of the same very long line), but it's an improvement over PICO which=20 always adds a carriage return at the edge of the screen. I use the=20 Terminal program in Mac OS X which doesn't seem to allow mouse=20 input. >=20 You should try longlines-mode. In this mode returns inserted by the=20 user are "hard" returns. The returns inserted by the filling=20 functions, which prevent the lines from running off the screen, are=20 "soft" returns. Soft returns are automatically removed when the text=20 is saved to disk. You can navigate through single long line=20 displayed in several lines as through many short lines, by hitting=20 up/down arrow or C-p, C-n (like in PICO). To use this mode you need=20 longlines.el file. If you use EmacsFromCVS you already have it. In=20 other case you can download it from http://cvs.savannah.gnu.org/ viewcvs/emacs/emacs/lisp/longlines.el Add something like this to your ~/.emacs: (require 'longlines) (global-set-key "\C-c\C-q" 'longlines-mode) (global-set-key "\C-cq" 'refill-mode) Then open a file and hit C-c C-q and C-c q to turn on both modes.=20 Hit M-q at a long line to break it with "soft" returns. You can=20 write a function to automatically break all lines (search at=20 emacswiki.org) Stawrul