Function: set-fringe-style
set-fringe-style is an interactive and byte-compiled function defined
in fringe.el.gz.
Signature
(set-fringe-style &optional MODE)
Documentation
Set the default appearance of fringes on the selected frame.
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.
Fringe widths set by set-window-fringes override the default
fringe widths set by this command. If you want to set the
default appearance of fringes on all frames, see the command
fringe-mode(var)/fringe-mode(fun).
Probably introduced at or before Emacs version 22.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/fringe.el.gz
(defun set-fringe-style (&optional mode)
"Set the default appearance of fringes on the selected frame.
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.
Fringe widths set by `set-window-fringes' override the default
fringe widths set by this command. If you want to set the
default appearance of fringes on all frames, see the command
`fringe-mode'."
(interactive (list (fringe-query-style)))
(fringe--check-style mode)
(modify-frame-parameters
(selected-frame)
(list (cons 'left-fringe (if (consp mode) (car mode) mode))
(cons 'right-fringe (if (consp mode) (cdr mode) mode)))))