File: master.el.html

master-mode(var)/master-mode(fun) is a minor mode which enables you to scroll another buffer (the slave) without leaving your current buffer (the master).

It can be used by sql.el, for example: The SQL buffer is the master and its SQLi buffer is the slave. This allows you to scroll the SQLi buffer containing the output from the SQL buffer containing the commands.

This is how to use sql.el and master.el together: The variable sql-buffer contains the slave buffer. It is a local variable in the SQL buffer.

(add-hook 'sql-mode-hook
           (lambda ()
             (master-mode t)
             (master-set-slave sql-buffer)))
(add-hook 'sql-set-sqli-hook (lambda () (master-set-slave sql-buffer)))

Defined variables (5)

master-modeNon-nil if Master mode is enabled.
master-mode-hookHook run after entering or leaving ‘master-mode’.
master-mode-mapKeymap for ‘master-mode’.
master-ofSlave buffer of the current buffer. See ‘master-mode’.
master-set-slave-hookHook run after the slave is changed using M-x master-set-slave.

Defined functions (9)

master-mode(&optional ARG)
master-says(&optional COMMAND ARG)
master-says-beginning-of-buffer(&optional ARG)
master-says-end-of-buffer(&optional ARG)
master-says-recenter(&optional ARG)
master-says-scroll-down(&optional ARG)
master-says-scroll-up(&optional ARG)
master-set-slave(BUFFER)
master-show-slave()

Defined faces (0)