all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: "word processor" text files
Date: Mon, 31 Jul 2006 09:04:03 -0600	[thread overview]
Message-ID: <eal66k$g7e$1@sea.gmane.org> (raw)
In-Reply-To: <20060731095631.26900.qmail@brouhaha.com>

Paul Rubin wrote:
> I wish there were a way to edit "word processor"-format text files in
> Emacs.  I don't mean .doc or anything like that, just .txt files with
> no newlines except between paragraphs.  The idea is the text flows
> automatically as you add stuff, or if you insert in the middle.
> Newline ends a paragraph.
> 
> The actual goal is to AVOID using a word processor (right now I use
> OpenOffice for this type of file, but I'd rather use Emacs).  The
> usual reason is that I want to write some text to paste into a web
> browser form.  The browser wants to fill text itself, and any newlines
> in the input turn into incorrectly placed line breaks.
> 
> Am I missing something?

,----[ C-h f longlines-mode RET ]
| longlines-mode is an interactive autoloaded Lisp function in `longlines'.
| (longlines-mode &optional arg)
|
| Toggle Long Lines mode.
| In Long Lines mode, long lines are wrapped if they extend beyond
| `fill-column'.  The soft newlines used for line wrapping will not
| show up when the text is yanked or saved to disk.
|
| If the variable `longlines-auto-wrap' is non-nil, lines are automatically
| wrapped whenever the buffer is changed.  You can always call
| `fill-paragraph' to fill individual paragraphs.
|
| If the variable `longlines-show-hard-newlines' is non-nil, hard newlines
| are indicated with a symbol.
|
| [back]
`----

So:

(add-hook 'text-mode-hook (lambda () (longlines-mode 1)))

-- 
Kevin

      reply	other threads:[~2006-07-31 15:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-31  9:56 "word processor" text files Paul Rubin
2006-07-31 15:04 ` Kevin Rodgers [this message]

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='eal66k$g7e$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /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.