Commit 8dc811d3 authored by Lute Kamstra's avatar Lute Kamstra
Browse files

(Defining Minor Modes): define-minor-mode can be used to define global

minor modes as well.
parent 65c492fd
@c -*-texinfo-*-
@c This is part of the GNU Emacs Lisp Reference Manual.
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2003, 2004
@c Free Software Foundation, Inc.
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999,
@c 2003, 2004, 2005 Free Software Foundation, Inc.
@c See the file elisp.texi for copying conditions.
@setfilename ../info/modes
@node Modes, Documentation, Keymaps, Top
......@@ -1098,8 +1098,7 @@ characters are reserved for major modes.)
@subsection Defining Minor Modes
The macro @code{define-minor-mode} offers a convenient way of
implementing a mode in one self-contained definition. It supports only
buffer-local minor modes, not global ones.
implementing a mode in one self-contained definition.
@defmac define-minor-mode mode doc [init-value [lighter [keymap keyword-args... body...]]]
@tindex define-minor-mode
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment