all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stawrul <stawrul@o2.pl>
Subject: Re: How can I move my cursor 80 characters with a key binding?
Date: Sun, 25 Dec 2005 23:26:37 +0100	[thread overview]
Message-ID: <20051225222637.563DB54A83@rekin17.go2.pl> (raw)
In-Reply-To: <2091468.post@talk.nabble.com>

> 
> Does anyone know an easier way to cursor around a very long line? 
I'm pretty frustrated with how I can't simply hit the up arrow and 
move up to the previous line on the screen (which is actually part 
of the same very long line), but it's an improvement over PICO which 
always adds a carriage return at the edge of the screen. I use the 
Terminal program in Mac OS X which doesn't seem to allow mouse 
input.
> 

You should try longlines-mode. In this mode returns inserted by the 
user are "hard" returns. The returns inserted by the filling 
functions, which prevent the lines from running off the screen, are 
"soft" returns. Soft returns are automatically removed when the text 
is saved to disk. You can navigate through single long line 
displayed in several lines as through many short lines, by hitting 
up/down arrow or C-p, C-n (like in PICO). To use this mode you need 
longlines.el file. If you use EmacsFromCVS you already have it. In 
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. 
Hit M-q at a long line to break it with "soft" returns. You can 
write a function to automatically break all lines (search at 
emacswiki.org)

Stawrul

  parent reply	other threads:[~2005-12-25 22:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-25  6:08 How can I move my cursor 80 characters with a key binding? Scott Teresi (sent by Nabble.com)
2005-12-25  6:25 ` Cameron Desautels
2005-12-25  6:31   ` Cameron Desautels
2005-12-25 16:53   ` Scott Teresi (sent by Nabble.com)
2005-12-25 17:59     ` Peter Dyballa
2005-12-25 22:26     ` Stawrul [this message]
     [not found]   ` <mailman.20404.1135529707.20277.help-gnu-emacs@gnu.org>
2005-12-25 20:05     ` Floyd L. Davidson
2005-12-26 12:32   ` Slawomir Nowaczyk
     [not found] <mailman.20378.1135491010.20277.help-gnu-emacs@gnu.org>
2005-12-25 14:59 ` David Hansen
2005-12-25 18:50 ` B. T. Raven
2005-12-25 19:19   ` Scott Teresi (sent by Nabble.com)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051225222637.563DB54A83@rekin17.go2.pl \
    --to=stawrul@o2.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.