From 16b4c38b1dd7f65d0d5f54863bf950810a419708 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 16 Nov 2005 18:11:34 +0000 Subject: [PATCH] (Minor Mode Conventions): Use custom-set-minor-mode. (Minor Mode Conventions): Mention the use of a hook. --- lispref/ChangeLog | 1 + lispref/modes.texi | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lispref/ChangeLog b/lispref/ChangeLog index dc2e92296ef..d8014b27613 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog @@ -1,6 +1,7 @@ 2005-11-16 Stefan Monnier * modes.texi (Minor Mode Conventions): Use custom-set-minor-mode. + (Minor Mode Conventions): Mention the use of a hook. 2005-11-06 Richard M. Stallman diff --git a/lispref/modes.texi b/lispref/modes.texi index 5dc9873fe96..f0513704b1f 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi @@ -1214,8 +1214,8 @@ The value of this variable is a list of all minor mode commands. There are conventions for writing minor modes just as there are for major modes. Several of the major mode conventions apply to minor modes as well: those regarding the name of the mode initialization -function, the names of global symbols, and the use of keymaps and -other tables. +function, the names of global symbols, the use of a hook at the end of +the initialization function, and the use of keymaps and other tables. In addition, there are several conventions that are specific to minor modes. (The easiest way to follow all the conventions is to use -- 2.39.5