* How do you normally type text in emacs?
@ 2005-07-31 12:31 rincewind
2005-07-31 14:28 ` Roy Smith
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: rincewind @ 2005-07-31 12:31 UTC (permalink / raw)
How do you normally type plain English text in emacs?
It appears that emacs either doesn't break lines at all (i.e., it just
wraps a line if it exceeds the screen width, disregarding word
boundaries), or inserts newlines when you run 'fill' command! Or
Fundamental is not a proper mode for exiting text (which mode I need, then)?
How can I make emacs automatically format paragraphs visually, without
breaking words and without inserting newlines?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How do you normally type text in emacs?
2005-07-31 12:31 How do you normally type text in emacs? rincewind
@ 2005-07-31 14:28 ` Roy Smith
2005-07-31 14:55 ` Neon Absentius
2005-07-31 15:19 ` Björn Lindström
2 siblings, 0 replies; 6+ messages in thread
From: Roy Smith @ 2005-07-31 14:28 UTC (permalink / raw)
In article <dcigbh$kal$1@gavrilo.mtu.ru>, rincewind <fake@not.real> wrote:
> How do you normally type plain English text in emacs?
> It appears that emacs either doesn't break lines at all (i.e., it just
> wraps a line if it exceeds the screen width, disregarding word
> boundaries), or inserts newlines when you run 'fill' command! Or
> Fundamental is not a proper mode for exiting text (which mode I need, then)?
>
> How can I make emacs automatically format paragraphs visually, without
> breaking words and without inserting newlines?
Try "M-X text-mode". You'll generally end up in text mode automatically if
you name your files with a ".txt" extension. It probably also want to turn
on auto-fill mode (M-X auto-fill-mode).
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How do you normally type text in emacs?
2005-07-31 12:31 How do you normally type text in emacs? rincewind
2005-07-31 14:28 ` Roy Smith
@ 2005-07-31 14:55 ` Neon Absentius
2005-07-31 15:19 ` Björn Lindström
2 siblings, 0 replies; 6+ messages in thread
From: Neon Absentius @ 2005-07-31 14:55 UTC (permalink / raw)
On Sun, Jul 31, 2005 at 04:31:45PM +0400, rincewind wrote:
> How do you normally type plain English text in emacs?
I normally use a keyboard :).
> It appears that emacs either doesn't break lines at all (i.e., it
> just wraps a line if it exceeds the screen width, disregarding
> word boundaries), or inserts newlines when you run 'fill' command!
> Or Fundamental is not a proper mode for exiting text (which mode I
> need, then)?
The proper mode for editing text is text-mode.
If you give the extension ".txt" to your files
then emacs automatically turns on the text mode.
>
> How can I make emacs automatically format paragraphs visually,
> without breaking words and without inserting newlines?
The "fill" functions do not break words but they
do insert newlines. I think that what you looking
for ("soft" breaks) is accomplished by the package
"longlines.el". Have a look
http://www.emacswiki.org/cgi-bin/wiki/longlines.el
hth
--
Charity in capitalism is like urinating to extinguish a forest fire.
-- Neon Absentius
absent a.in.cirle sdf period lonestar period org
SDF Public Access UNIX System - http://sdf.lonestar.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How do you normally type text in emacs?
2005-07-31 12:31 How do you normally type text in emacs? rincewind
2005-07-31 14:28 ` Roy Smith
2005-07-31 14:55 ` Neon Absentius
@ 2005-07-31 15:19 ` Björn Lindström
2005-07-31 15:54 ` Peter Dyballa
2 siblings, 1 reply; 6+ messages in thread
From: Björn Lindström @ 2005-07-31 15:19 UTC (permalink / raw)
rincewind <fake@not.real> writes:
> How do you normally type plain English text in emacs?
The same way I type plain Swedish. ;-)
> How can I make emacs automatically format paragraphs visually, without
> breaking words and without inserting newlines?
Files with an extension of .txt automatically gets the text-mode
treatment. Apart from what it does by default, here are some settings I
like to set:
(defun set-fill-mode-column ()
(setq fill-column 72)
(turn-on-auto-fill))
(add-hook 'text-mode-hook
(lambda ()
(set-fill-mode-column)
(flyspell-mode)))
This turns on automatic wrapping at 72 columns, and turns on on-the-fly
spell checking.
For the spell checking to work as I want, this is what I do:
(setq ispell-program-name "aspell")
(setq-default ispell-local-dictionary "british")
(require 'ispell)
(global-set-key "\C-csf" (lambda () (interactive)
(flyspell-mode)))
(global-set-key "\C-csb" (lambda () (interactive)
(ispell-change-dictionary "british")))
(global-set-key "\C-css" (lambda () (interactive)
(ispell-change-dictionary "svenska")))
Good luck.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-07-31 17:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-31 12:31 How do you normally type text in emacs? rincewind
2005-07-31 14:28 ` Roy Smith
2005-07-31 14:55 ` Neon Absentius
2005-07-31 15:19 ` Björn Lindström
2005-07-31 15:54 ` Peter Dyballa
2005-07-31 17:36 ` Björn Lindström
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).