Function: fringe-mode
fringe-mode is an interactive and byte-compiled function defined in
fringe.el.gz.
Signature
(fringe-mode &optional MODE)
Documentation
Set the default appearance of fringes on all frames.
When called interactively, query the user for MODE; valid values
are no-fringes, default, left-only, right-only, minimal
and half-width. See fringe-styles.
When used in a Lisp program, MODE should be one of these:
- nil, which means the default width (8 pixels).
- a cons cell (LEFT . RIGHT), where LEFT and RIGHT are
respectively the left and right fringe widths in pixels, or
nil (meaning the default width).
- a single integer, which specifies the pixel widths of both
fringes.
This command may round up the left and right width specifications to ensure that their sum is a multiple of the character width of a frame. It never rounds up a fringe width of 0.
Note that removing a right or left fringe (by setting the width
to zero) makes Emacs reserve one column of the window body to
display a line continuation marker. (This happens for both the
left and right fringe, since Emacs can display both left-to-right
and right-to-left text.) You can use window-max-chars-per-line
to check the effective width.
Fringe widths set by set-window-fringes override the default
fringe widths set by this command. This command applies to all
frames that exist and frames to be created in the future. If you
want to set the default appearance of fringes on the selected
frame only, see the command set-fringe-style.
Note that, despite the name, this is not a (major or minor) Emacs mode, but a command that controls the appearance of the fringes.
Probably introduced at or before Emacs version 22.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/fringe.el.gz
(defun fringe-mode (&optional mode)
"Set the default appearance of fringes on all frames.
When called interactively, query the user for MODE; valid values
are `no-fringes', `default', `left-only', `right-only', `minimal'
and `half-width'. See `fringe-styles'.
When used in a Lisp program, MODE should be one of these:
- nil, which means the default width (8 pixels).
- a cons cell (LEFT . RIGHT), where LEFT and RIGHT are
respectively the left and right fringe widths in pixels, or
nil (meaning the default width).
- a single integer, which specifies the pixel widths of both
fringes.
This command may round up the left and right width specifications
to ensure that their sum is a multiple of the character width of
a frame. It never rounds up a fringe width of 0.
Note that removing a right or left fringe (by setting the width
to zero) makes Emacs reserve one column of the window body to
display a line continuation marker. (This happens for both the
left and right fringe, since Emacs can display both left-to-right
and right-to-left text.) You can use `window-max-chars-per-line'
to check the effective width.
Fringe widths set by `set-window-fringes' override the default
fringe widths set by this command. This command applies to all
frames that exist and frames to be created in the future. If you
want to set the default appearance of fringes on the selected
frame only, see the command `set-fringe-style'.
Note that, despite the name, this is not a (major or minor) Emacs
mode, but a command that controls the appearance of the fringes."
(interactive (list (fringe-query-style 'all-frames)))
(set-fringe-mode mode))