From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bkhl@elektrubadur.se (=?utf-8?Q?Bj=C3=B6rn_Lindstr=C3=B6m?=) Newsgroups: gmane.emacs.help Subject: Re: How do you normally type text in emacs? Date: Sun, 31 Jul 2005 17:19:24 +0200 Message-ID: <87fytv9f5v.fsf@lucien.dreaming> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1122823944 1502 80.91.229.2 (31 Jul 2005 15:32:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 31 Jul 2005 15:32:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 31 17:32:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DzFnU-0003zE-3n for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Jul 2005 17:32:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzFq5-0001PE-L7 for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Jul 2005 11:34:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DzFn5-0007xX-Kc for help-gnu-emacs@gnu.org; Sun, 31 Jul 2005 11:31:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DzFmw-0007tm-VC for help-gnu-emacs@gnu.org; Sun, 31 Jul 2005 11:31:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzFmw-0007s3-Ci for help-gnu-emacs@gnu.org; Sun, 31 Jul 2005 11:31:42 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DzFoJ-00028H-SY for help-gnu-emacs@gnu.org; Sun, 31 Jul 2005 11:33:08 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DzFba-0002us-0N for help-gnu-emacs@gnu.org; Sun, 31 Jul 2005 17:19:58 +0200 Original-Received: from h17n4c1o1124.bredband.skanova.com ([81.228.155.17]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 31 Jul 2005 17:19:58 +0200 Original-Received: from bkhl by h17n4c1o1124.bredband.skanova.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 31 Jul 2005 17:19:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-To: help-gnu-emacs@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: h17n4c1o1124.bredband.skanova.com Mail-Copies-To: never X-Home-Page: http://bkhl.elektrubadur.se/ User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:B3J1/jjKYB0n5qb7h9dYVOPYKo0= 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:28316 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28316 rincewind 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.