From: bkhl@elektrubadur.se (Björn Lindström)
Subject: Re: How do you normally type text in emacs?
Date: Sun, 31 Jul 2005 17:19:24 +0200 [thread overview]
Message-ID: <87fytv9f5v.fsf@lucien.dreaming> (raw)
In-Reply-To: dcigbh$kal$1@gavrilo.mtu.ru
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.
next prev parent reply other threads:[~2005-07-31 15:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2005-07-31 15:54 ` Peter Dyballa
2005-07-31 17:36 ` Björn Lindström
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fytv9f5v.fsf@lucien.dreaming \
--to=bkhl@elektrubadur.se \
/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.
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).