Function: global-dictionary-tooltip-mode

global-dictionary-tooltip-mode is an autoloaded, interactive and byte-compiled function defined in dictionary.el.gz.

Signature

(global-dictionary-tooltip-mode &optional ARG)

Documentation

Enable/disable dictionary-tooltip-mode(var)/dictionary-tooltip-mode(fun) for all buffers.

Internally it provides a default for the dictionary-tooltip-mode(var)/dictionary-tooltip-mode(fun). It can be overwritten for each buffer using dictionary-tooltip-mode(var)/dictionary-tooltip-mode(fun).

Note: (global-dictionary-tooltip-mode 0) will not disable the mode any buffer where (dictionary-tooltip-mode 1) has been called.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/dictionary.el.gz
;;;###autoload
(defun global-dictionary-tooltip-mode (&optional arg)
  "Enable/disable `dictionary-tooltip-mode' for all buffers.

Internally it provides a default for the `dictionary-tooltip-mode'.
It can be overwritten for each buffer using `dictionary-tooltip-mode'.

Note: (global-dictionary-tooltip-mode 0) will not disable the mode
any buffer where (dictionary-tooltip-mode 1) has been called."
  (interactive "P")
  (require 'tooltip)
  (let ((on (if arg (> (prefix-numeric-value arg) 0)
              (not global-dictionary-tooltip-mode))))
    (setq global-dictionary-tooltip-mode on)
    (setq-default dictionary-tooltip-mode on)
    (make-local-variable 'dictionary-tooltip-mouse-event)
    (setq-default track-mouse on)
    (dictionary-switch-tooltip-mode 1)
    (global-set-key [mouse-movement]
                    (if on #'dictionary-tooltip-track-mouse #'ignore))
    on))