Variable: erc-fill-function
erc-fill-function is a customizable variable defined in
erc-fill.el.gz.
Value
erc-fill-variable
Documentation
Function to use for filling messages.
Variable Filling with an erc-fill-prefix of nil:
<shortnick> this is a very very very long message with no
meaning at all
Variable Filling with an erc-fill-prefix of four spaces:
<shortnick> this is a very very very long message with no
meaning at all
Static Filling with erc-fill-static-center of 27:
<shortnick> foo bar baz
<a-very-long-nick> foo bar baz quuuuux
<shortnick> this is a very very very long message with no
meaning at all
These two styles are implemented using erc-fill-variable and
erc-fill-static. You can, of course, define your own filling
function. Narrowing to the region in question is in effect while your
function is called.
A third style resembles static filling but "wraps" instead of
fills, thanks to visual-line-mode(var)/visual-line-mode(fun) mode, which ERC automatically
enables when this option is erc-fill-wrap or when the module
fill-wrap is active. Use erc-fill-static-center to specify
an initial "prefix" width and erc-fill-wrap-margin-width
instead of erc-fill-column for influencing initial message
width. For adjusting these during a session, see the commands
erc-fill-wrap-nudge and erc-fill-wrap-refill-buffer. Read
more about this style in the doc string for erc-fill-wrap-mode(var)/erc-fill-wrap-mode(fun).
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-fill.el.gz
(defcustom erc-fill-function 'erc-fill-variable
"Function to use for filling messages.
Variable Filling with an `erc-fill-prefix' of nil:
<shortnick> this is a very very very long message with no
meaning at all
Variable Filling with an `erc-fill-prefix' of four spaces:
<shortnick> this is a very very very long message with no
meaning at all
Static Filling with `erc-fill-static-center' of 27:
<shortnick> foo bar baz
<a-very-long-nick> foo bar baz quuuuux
<shortnick> this is a very very very long message with no
meaning at all
These two styles are implemented using `erc-fill-variable' and
`erc-fill-static'. You can, of course, define your own filling
function. Narrowing to the region in question is in effect while your
function is called.
A third style resembles static filling but \"wraps\" instead of
fills, thanks to `visual-line-mode' mode, which ERC automatically
enables when this option is `erc-fill-wrap' or when the module
`fill-wrap' is active. Use `erc-fill-static-center' to specify
an initial \"prefix\" width and `erc-fill-wrap-margin-width'
instead of `erc-fill-column' for influencing initial message
width. For adjusting these during a session, see the commands
`erc-fill-wrap-nudge' and `erc-fill-wrap-refill-buffer'. Read
more about this style in the doc string for `erc-fill-wrap-mode'."
:type '(choice (const :tag "Variable Filling" erc-fill-variable)
(const :tag "Static Filling" erc-fill-static)
(const :tag "Dynamic word-wrap" erc-fill-wrap)
function))