Function: hmouse-install
hmouse-install is an interactive and byte-compiled function defined in
hmouse-key.el.
Signature
(hmouse-install &optional ARG)
Documentation
Initialize Hyperbole mouse buttons.
Bind the two rightmost shifted mouse keys to the Action and Assist Keys. With optional prefix ARG or under InfoDock, also bind the unshifted middle mouse key to the Action Key.
The standard Hyperbole configuration is Action Key = shift-middle mouse key; Assist Key = shift-right mouse key.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmouse-key.el
(defun hmouse-install (&optional arg)
"Initialize Hyperbole mouse buttons.
Bind the two rightmost shifted mouse keys to the Action and
Assist Keys. With optional prefix ARG or under InfoDock, also
bind the unshifted middle mouse key to the Action Key.
The standard Hyperbole configuration is Action Key = shift-middle mouse key;
Assist Key = shift-right mouse key."
(interactive "P")
(unless hmouse-middle-flag
(setq hmouse-middle-flag (or arg (and (boundp 'infodock-version)
infodock-version))))
;; Replace any original mouse bindings before installing Hyperbole bindings and
;; then force reinitialization of hmouse-previous-bindings.
(if (and hmouse-bindings-flag hmouse-previous-bindings)
(hmouse-set-bindings hmouse-previous-bindings))
(setq hmouse-bindings-flag nil
hmouse-previous-bindings nil)
;; This function does the actual binding of the Hyperbole mouse keys
;; and the setup of the mouse-set-point command via `hmouse-set-point-command'.
(hmouse-shifted-setup hmouse-middle-flag)
(if (called-interactively-p 'interactive)
;; Assume emacs has support for 3 mouse keys.
(message "%s the Action Mouse Key; {Shift-Mouse-3} invokes the Assist Mouse Key."
(if hmouse-middle-flag "{Mouse-2} and {Shift-Mouse-2} invoke"
"{Shift-Mouse-2} invokes"))))