all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: turn-on-*-mode
Date: Tue, 16 May 2006 17:48:59 +0200	[thread overview]
Message-ID: <v97j4m9dhw.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: m3k68mvx6k.fsf@kfs-l.imdomain.dk

On Tue, May 16 2006, Kim F. Storm wrote:

> There are also a number of "toggle-" functions, which IMO is a much
> better interface (just one function, with a simple common prefix).

An advantage of turn-on-... (and turn-off-...) is that is simplifies
adding it to a hook:

  (add-hook 'text-mode-hook 'turn-on-auto-fill)
  (add-hook 'text-mode-hook (lambda () (flyspell-mode 1)))

BTW, AFAICS the `flyspell-mode' entry in the defcustom of
`text-mode-hook' toggles `flyspell-mode' instead of turning it on:

(defcustom text-mode-hook nil
  "Normal hook run when entering Text mode and many related modes."
  :type 'hook
  :options '(turn-on-auto-fill flyspell-mode)
  :group 'data)

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

  parent reply	other threads:[~2006-05-16 15:48 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15 13:32 turn-on-*-mode Sam Steingold
2006-05-16  4:28 ` turn-on-*-mode Richard Stallman
2006-05-16 12:53   ` turn-on-*-mode Sam Steingold
2006-05-16 13:29     ` turn-on-*-mode Lennart Borgman
2006-05-16 14:52       ` turn-on-*-mode Kim F. Storm
2006-05-16 15:04         ` turn-on-*-mode Sam Steingold
2006-05-16 15:31           ` turn-on-*-mode David Kastrup
2006-05-16 15:40             ` turn-on-*-mode Drew Adams
2006-05-16 16:03               ` turn-on-*-mode Lennart Borgman
2006-05-16 18:35             ` turn-on-*-mode Stuart D. Herring
2006-05-17  1:26               ` turn-on-*-mode Johan Bockgård
2006-05-17  3:45             ` turn-on-*-mode Richard Stallman
2006-05-17  3:44           ` turn-on-*-mode Richard Stallman
2006-05-30 18:38             ` turn-on-*-mode Reiner Steib
2006-05-30 18:58               ` turn-on-*-mode Sam Steingold
2006-05-30 19:07                 ` turn-on-*-mode Reiner Steib
2006-05-16 15:16         ` turn-on-*-mode Drew Adams
2006-05-16 15:48         ` Reiner Steib [this message]
2006-05-17  2:18           ` turn-on-*-mode Miles Bader
2006-05-17 20:08             ` turn-on-*-mode Richard Stallman
2006-05-17 21:24               ` turn-on-*-mode Stefan Monnier
2006-05-19  2:03                 ` turn-on-*-mode Richard Stallman
2006-05-19  3:30                   ` turn-on-*-mode Stefan Monnier
2006-05-16 16:02         ` turn-on-*-mode Kevin Rodgers
2006-05-17 15:28           ` turn-on-*-mode Stefan Monnier

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=v97j4m9dhw.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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.