The margin widths are controllable on a buffer-local, window-local, frame-local, device-local, or device-type-local basis through the use of specifiers. See Specifiers.
This is a specifier variable controlling the width of the left outside margin, in characters. Use
set-specifierto change its value.
This is a specifier variable controlling the width of the right outside margin, in characters. Use
set-specifierto change its value.
If non-
nil, use the left outside margin as extra whitespace when displayingwhitespaceandinside-marginannotations. Defaults tonil. This is a specifier variable; useset-specifierto change its value.
If non-
nil, use the right outside margin as extra whitespace when displayingwhitespaceandinside-marginannotations. Defaults tonil. This is a specifier variable; useset-specifierto change its value.
This function returns the width in pixels of the left outside margin of window. If window is
nil, the selected window is assumed.
This function returns the width in pixels of the right outside margin of window. If window is
nil, the selected window is assumed.
The margin colors are controlled by the faces left-margin and
right-margin. These can be set using the X resources
Emacs.left-margin.background and
Emacs.left-margin.foreground; likewise for the right margin.