global-mode - Change a global buffer mode
add-global-mode - Set a global buffer mode
delete-global-mode - Remove a global buffer mode
n global-mode "mode" (esc m)
global-mode changes the state of one of the hereditary global modes. A buffer's modes are initialized to the global modes when first created. This command is very useful in changing some of the default behavior such as case sensitive searching (see the example below). See Operating Modes for a full list and description of modes. Also see buffer-mode(2) for a full description of the use of the argument n.
The about(2) command gives a list of the current global and buffer modes.
add-global-mode and delete-global-mode are macros defined in meme3_8.emf which use global-mode to add or remove a global mode. They are defined for backward compatibility with MicroEMACS v3.8 and for ease of use; they are simple macros, add-global-mode is defined as follows:
define-macro add-global-mode ; Has the require mode been given as an argument, if so add it !force 1 global-mode @1 !if ¬ $status ; No - use 1 global-mode to add a mode !nma 1 global-mode !endif !emacro
-1 global-mode "exact" -1 global-mode "magic"
Globally adding binary(2m), crypt(2m) and rbin(2m) modes is strongly discouraged as any file loaded would be assigned these modes. Instead use the numeric argument of command find-file(2) or commands find-bfile(3) and find-cfile(3).
auto(2m), autosv(2m), backup(2m), exact(2m), magic(2m), quiet(2m), tab(2m) and undo(2m) modes are present on all platforms by default. On Windows and DOS platforms crlf(2m) is also present and on DOS ctrlz(2m) is also present.
Copyright (c) 1998-2006 JASSPA
Last Modified: 2002/01/11
Generated On: 2006/10/07