buffer-major-mode - Change the operating mode of a buffer
buffer-major-mode "modename"
buffer-major-mode changes the major mode of a buffer affecting the highlighting, indentation, key bindings and mode specific commands to the specified modename. This allows the buffer to be configured correctly for the type of file.
On invocation then the user is prompted for the modename, TAB performs completion.
Running buffer-major-mode causes the File Hook to be executed for the buffer for the new modename.
buffer-setup(3) may be used to make local changes to the major mode for the current buffer only. major-mode-setup(3) may be used to change the major mode settings across all buffers.
Copyright (c) 1998-2006 JASSPA
Last Modified: 2006/08/24
Generated On: 2006/10/07