Function: hmouse-mod-enable
hmouse-mod-enable is a byte-compiled function defined in
hmouse-mod.el.
Signature
(hmouse-mod-enable)
Documentation
Create hmouse-mod--global-map and install it as the current global map.
It accounts for modifier Smart Keys.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmouse-mod.el
(defun hmouse-mod-enable ()
"Create `hmouse-mod--global-map' and install it as the current global map.
It accounts for modifier Smart Keys."
(error "(hmouse-mod-mode): Don't use this; it conflicts with Emacs mouse bindings")
(setq hmouse-mod--global-map (copy-keymap global-map))
(substitute-key-definition
'self-insert-command 'hmouse-mod-insert-command hmouse-mod--global-map)
(substitute-key-definition
'keyboard-quit 'hmouse-mod-keyboard-quit hmouse-mod--global-map)
(unless (where-is-internal 'hmouse-mod-insert-command)
(setq hmouse-mod--prior-global-map (current-global-map)))
(use-global-map hmouse-mod--global-map))