Function: smart-company-to-definition

smart-company-to-definition is an interactive and byte-compiled function defined in hui-mouse.el.

Signature

(smart-company-to-definition EVENT)

Documentation

Action Key binding for company-mode completions to show item definition.

Use left mouse key, RET or TAB key to select a completion and exit.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mouse.el
;;; ************************************************************************
;;; smart-company mode functions
;;; ************************************************************************

;; These functions are called from hkey-alist when keyboard Smart Keys
;; are used.  For mouse keys, they are bound to local keys in
;; company-mode's minor mode map.

(defun smart-company-to-definition (event)
  "Action Key binding for `company-mode' completions to show item definition.
Use left mouse key, RET or TAB key to select a completion and exit."
  (interactive "e")
  (when (mouse-event-p last-command-event)
    (company-select-mouse event))
  (company-show-location))