buffer-setup(3)
[Home]
[Commands]
[Variables]
[Macro-Dev]
[Glossary]
NAME
SYNOPSIS
DESCRIPTION
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
execute-named-command(2).
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:-
Major Mode
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
major-mode-setup(3).
Indent Width
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
$indent-width(5).
Tab Width
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.
Fill Column
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
$fill-col(5)).
Fill Mode
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
$fill-mode(5)).
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
lex and
yacc which use a special syntax combination with C.
Use Hilighting
Toggles hilighting on and off, this setting is only present if the buffer type supports a
hilight(2) scheme.
Buffer Modes
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.
HISTORY
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.
SEE ALSO
buffer-setup(3),
execute-named-command(2),
hilight(2),
indent(2),
major-mode-setup(3),
osd(2),
tabs-to-spaces(3)
$buffer-fill-col(5),
$buffer-fill-mode(5),
$buffer-indent-width(5),
$buffer-tab-width(5),
$fill-col(5),
$fill-mode(5),
$indent-width(5),
$tab-width(5).
Operating Modes.
(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12