From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Roodwriter@core.com" Newsgroups: gmane.emacs.help Subject: Re: Movement mode Date: Wed, 26 May 2004 13:18:46 -0400 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <10b9kef24vhug00@corp.supernews.com> References: Reply-To: Roodwriter@core.com NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1085594337 25401 80.91.224.253 (26 May 2004 17:58:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 May 2004 17:58:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 26 19:58:39 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BT2fm-0005PQ-00 for ; Wed, 26 May 2004 19:58:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BT2Gb-00082A-4h for geh-help-gnu-emacs@m.gmane.org; Wed, 26 May 2004 13:32:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: KNode/0.7.1 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 60 Original-Xref: shelby.stanford.edu gnu.emacs.help:123476 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18773 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18773 Tobias Radloff wrote: > Hi there, > > I wonder if there is a way to make emacs behave like modern editors like > kedit and the like, especially when it comes to paragraphs continuing over > several lines. I'd like to change the behavior of the up and down keys > (and that of C-P and C-N too, of course) from moving one paragraph up or > down to moving one line up or down. I would like to change the behavior of > pos1 and end similarly. > > Since we're talking emacs here, I don't ask if it's possible but rather: > how do I do it? :) > > > Regards > Tobias You need auto-fill mode, which breaks the lines as you type along. That'll also give you the cursor motion that you're looking for. Unfortunately, it uses hard carriage returns and won't rebreak them so you have to use M-q to put the paragraph into the proper order. There's also refill-mode, which does the M-qing automatically. It has one major drawback: It's greedy. If you do this: First line second line third line You'll get: First line second line third line. Because of this I find it easier to write in block style, without tabs. When I need tabs (and longlines) I use a macro to convert two carriage returns in a row to a carriage return and tab and then delete single carriage returns. It's basically just some replace-regexps. First I replace the carriage returns with a symbol (I use # because I don't use it otherwise) and then the replacements as stated in the beginning of the paragraph. For writing, don't use the normal text mode but paragraph-indent-text-mode. It handles tabs better. But still Emacs' tabbing is better for programmers than writers. Tabs can be a problem. So I skip them. The macro I described makes it painless to convert to tabbed style. Yeah, for writing, Emacs method of line-breaking can be a bit of a pain. But its wealth of other editing commands more than makes up for this small drawback. --Rod __________ Author of "Linux for Non-Geeks--Clear-eyed Answers for Practical Consumers" and "Boring Stories from Uncle Rod." Both are available at http://www.rodwriterpublishing.com/index.html To reply by e-mail, take the extra "o" out of the name.