Function: erc-status-sidebar-mode
erc-status-sidebar-mode is a byte-compiled function defined in
erc-status-sidebar.el.gz.
Signature
(erc-status-sidebar-mode)
Documentation
Major mode for ERC status sidebar.
In addition to any hooks its parent mode special-mode might have run,
this mode runs the hook erc-status-sidebar-mode-hook, as the final or
penultimate step during initialization.
- negative-argument
0 digit-argument
1 digit-argument
2 digit-argument
3 digit-argument
4 digit-argument
5 digit-argument
6 digit-argument
7 digit-argument
8 digit-argument
9 digit-argument
< beginning-of-buffer
<mouse-1> erc-status-sidebar-click
> end-of-buffer
? describe-mode
DEL scroll-down-command
S-SPC scroll-down-command
SPC scroll-up-command
SPC..~ undefined
g revert-buffer
h describe-mode
q quit-window
Source Code
;; Defined in /usr/src/emacs/lisp/erc/erc-status-sidebar.el.gz
(define-derived-mode erc-status-sidebar-mode special-mode "ERC Sidebar"
"Major mode for ERC status sidebar."
;; Users invoking M-x erc-status-sidebar-mode most likely expect to
;; summon the module's minor-mode, `erc-bufbar-mode'.
:interactive nil
;; Don't scroll the buffer horizontally, if a channel name is
;; obscured then the window can be resized.
(setq-local auto-hscroll-mode nil)
(setq cursor-type nil
buffer-read-only t
mode-line-format erc-status-sidebar-mode-line-format
header-line-format erc-status-sidebar-header-line-format)
(erc-status-sidebar-set-window-preserve-size)
(add-hook 'window-configuration-change-hook
#'erc-status-sidebar-set-window-preserve-size nil t)
(when erc-status-sidebar-highlight-active-buffer
(setq-local erc-status-sidebar-refresh-triggers
`(,@erc-status-sidebar--highlight-refresh-triggers
,@erc-status-sidebar-refresh-triggers)))
(dolist (hk erc-status-sidebar-refresh-triggers)
(add-hook hk #'erc-status-sidebar--post-refresh))
;; `change-major-mode-hook' is run *before* the
;; erc-status-sidebar-mode initialization code, so it won't undo the
;; add-hook's we did in the previous expressions.
(add-hook 'change-major-mode-hook #'erc-status-sidebar-mode--unhook nil t)
(add-hook 'kill-buffer-hook #'erc-status-sidebar-mode--unhook nil t))