buffer-mode - Change a local buffer mode
named-buffer-mode - Change a named buffer mode
add-mode - Set a local buffer mode
delete-mode - Remove a local buffer mode
unmark-buffer - Remove buffer change flag
n buffer-mode "mode" (C-x m)
n named-buffer-mode "buffer-name" "mode"
add-mode "mode"
delete-mode "mode"
unmark-buffer
buffer-mode changes the state of a given buffer mode, affecting only the current buffer. A buffer's mode affects the behavior of MicroEmacs 2009. The about(2) command gives a list of the current global and buffer modes. Refer to Operating Modes for a description of the buffer modes.
The argument n when given, has the following meaning:
Delete Add toggle Mode -1 1 0 Use "mode" -2 2 130 autosv -3 3 131 backup -4 4 132 binary -5 5 133 cr -6 6 134 crypt -7 7 135 ctrlz -8 8 136 edit -9 9 137 exact -10 10 138 fence -11 11 139 hide -12 12 140 indent -13 13 141 justify -14 14 142 lf -15 15 143 lock -16 16 144 magic -17 17 145 nact -18 18 146 narrow -19 19 147 over -20 20 148 pipe -21 21 149 rbin -22 22 150 tab -24 24 152 time -25 25 153 undo -26 26 154 view -27 27 155 wrap
Note that when omitted the default argument is 0, i.e. prompt for and toggle a mode.
named-buffer-mode changes the state of a given buffer mode for a given buffer which may not be the current buffer.
add-mode and delete-mode are macros which use buffer-mode to add and remove a buffer mode. unmark-buffer is also a macro which removes the edit flag from the current buffer. They are defined for backward compatibility with MicroEMACS v3.8 and can be found in meme3_8.emf; add-mode is defined as follows:
define-macro add-mode ; Has the require mode been given as an argument, if so add it !force 1 buffer-mode @1 !if ¬ $status ; No - use 1 buffer-mode to add a mode !nma 1 buffer-mode !endif !emacro
When a buffer is created it inherits the current global mode state.
(c) Copyright JASSPA 2009
Last Modified: 2009/10/03
Generated On: 2009/10/12