Function: master-mode
master-mode is an autoloaded, interactive and byte-compiled function
defined in master.el.gz.
Signature
(master-mode &optional ARG)
Documentation
Toggle Master mode.
When Master mode is enabled, you can scroll the slave buffer using the following commands:
C-c < master-says-beginning-of-buffer
C-c > master-says-end-of-buffer
C-c C-l master-says-recenter
C-c C-n master-says-scroll-up
C-c C-p master-says-scroll-down
The slave buffer is stored in the buffer-local variable master-of.
You can set this variable using master-set-slave. You can show
yourself the value of master-of by calling master-show-slave.
This is a minor mode. If called interactively, toggle the
Master mode mode. If the prefix argument is positive, enable
the mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable
the mode if ARG is nil, omitted, or is a positive number.
Disable the mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate master-mode(var)/master-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Probably introduced at or before Emacs version 22.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/master.el.gz
;;; Define master mode.
;;;###autoload
(define-minor-mode master-mode
"Toggle Master mode.
When Master mode is enabled, you can scroll the slave buffer
using the following commands:
\\{master-mode-map}
The slave buffer is stored in the buffer-local variable `master-of'.
You can set this variable using `master-set-slave'. You can show
yourself the value of `master-of' by calling `master-show-slave'."
;; Not global, so no effect.
;;; :group 'master
:keymap
'(("\C-c\C-n" . master-says-scroll-up)
("\C-c\C-p" . master-says-scroll-down)
("\C-c<" . master-says-beginning-of-buffer)
("\C-c>" . master-says-end-of-buffer)
("\C-c\C-l" . master-says-recenter)))