Function: hmouse-mod-mode

hmouse-mod-mode is an autoloaded, interactive and byte-compiled function defined in hmouse-mod.el.

Signature

(hmouse-mod-mode &optional ARG)

Documentation

Toggle use of Smart Keys as Control- and Meta- modifiers (Hmouse Modifier mode).

With a prefix argument ARG, enable Hmouse Mod mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil.

If the Action Key is held down while alpha characters are typed, they are translated into Control keys instead. The Assist Key translates them into Meta keys. When both Smart Keys are depressed, Control-Meta keys are produced. The commands bound to the characters produced are then run.

Hmouse Modifier mode is a global minor mode. It does not affect unmodified keys. Normal Smart Key operations work with this mode, if no other key is pressed while a Smart Key is depressed.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmouse-mod.el
;;; ************************************************************************
;;; Public functions
;;; ************************************************************************

;;;###autoload
(define-minor-mode hmouse-mod-mode
  "Toggle use of Smart Keys as Control- and Meta- modifiers (Hmouse Modifier mode).
With a prefix argument ARG, enable Hmouse Mod mode if ARG is
positive, and disable it otherwise.  If called from Lisp, enable
the mode if ARG is omitted or nil.

If the Action Key is held down while alpha characters are typed,
they are translated into Control keys instead.  The Assist Key
translates them into Meta keys.  When both Smart Keys are depressed,
Control-Meta keys are produced.  The commands bound to the
characters produced are then run.

Hmouse Modifier mode is a global minor mode.  It does not affect
unmodified keys.  Normal Smart Key operations work with this
mode, if no other key is pressed while a Smart Key is depressed."
  :global t :group 'hyperbole-keys :lighter " HyMod"
  (if hmouse-mod-mode
      (progn (hmouse-mod-enable)
	     (if (called-interactively-p 'interactive)
		 (message "Action Key acts as Control- modifier; Assist Key acts as Meta- modifier.")))
    (hmouse-mod-disable)
    (if (called-interactively-p 'interactive)
	(message "Smart Keys no longer act as Control- and Meta- modifiers."))))