buffer-setup provides a dialog interface for configuring the buffer major mode, indentation and buffer modes. buffer-setup may be invoked from the main Tools menu or directly from the command line using
The buffer-setup dialog may be used to quickly reconfigure the attributes of a given buffer. The settings are only temporary and expire once the buffer has been closed or re-loaded.
buffer-setup(3) should be used to associate user specific settings with different buffer types.
The following controls are available:-
Associates a file type with the content of the file and is used to modify the buffer highlighting and content assisted controls if the file type has not been recognized correctly. Changing the major mode will cause the new file type template to be loaded and may cause the buffer key bindings to change. The default major mode settings are set with
Defines the indent width to use when the TAB key is pressed, or following a nested construct in a auto-indent buffer. This entry modifies the
$buffer-indent-width(5) setting. The default indentation width is defined by the variable
The width of a rendered TAB character in spaces, modification of this value immediately changes the layout. This modifies the buffer width tab variable
$buffer-tab-width(5) the default is 8 (defined by
$tab-width(5)). Where files have been edited with a non-standard tab width then modification of this value (to typically 2 or 4) may correct the problem. To correct the styling of the buffer to be editor independent then the command
tabs-to-spaces(3) may be used to change all of the tab characters to spaces once the tab width has been correctly set.
A text layout variable, defines the maximum length of the line before wrapping occurs when a text paragraph is filled. This modifies the buffer fill column variable
$buffer-fill-col(5) the default is 78 (defined by
A text layout variable, defines how paragraphs should be filled across multiple lines. This modifies the buffer fill mode variable
$buffer-fill-mode(5) the default is B which causes automatic detection of paragraph layout, defaulting to full justification against the left and right margins (defined by
Use Auto Indentation
Toggles automatic indentation on an off, this setting is only present if the buffer type supports a
indent(2) scheme. Typically used for files such as
yacc which use a special syntax combination with C.
Toggles hilighting on and off, this setting is only present if the buffer type supports a
A notable mode switch here is
tab(2m) which changes the behavior of the TAB key, when set tabs are simulated with the insertion of spaces, when disabled literal tab characters are used.
Prior to the 2006 release buffer-setup was previously called indent-setup and dealt with the indentation settings only. The 2006 release introduced the concept of Major Mode.
Copyright (c) 1998-2006 JASSPA
Last Modified: 2006/08/13
Generated On: 2006/10/07