Function: dictionary-mode
dictionary-mode is an autoloaded, interactive and byte-compiled
function defined in dictionary.el.gz.
Signature
(dictionary-mode)
Documentation
Mode for searching a dictionary.
This is a mode for searching a dictionary server implementing the protocol defined in RFC 2229.
This is a quick reference to this mode describing the default key bindings:
q (dictionary-close) close the dictionary buffer
h (describe-mode) display this help
s (dictionary-search) ask for a new word to search
d (dictionary-lookup-definition) search for word at point
n (forward-button) or \TAB move point to the next link
p (backward-button) or \S-TAB move point to the previous link
m (dictionary-match-words) ask for a pattern and list all matching words
D (dictionary-select-dictionary) select the default dictionary
M (dictionary-select-strategy) select the default search strategy
\RET visit link at point
\<mouse-2> visit clicked link
In addition to any hooks its parent mode special-mode might have run,
this mode runs the hook dictionary-mode-hook, as the final or
penultimate step during initialization.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/dictionary.el.gz
;;;###autoload
(define-derived-mode dictionary-mode special-mode "Dictionary"
"Mode for searching a dictionary.
This is a mode for searching a dictionary server implementing the
protocol defined in RFC 2229.
This is a quick reference to this mode describing the default key bindings:
\\<dictionary-mode-map>
\\[dictionary-close] close the dictionary buffer
\\[describe-mode] display this help
\\[dictionary-search] ask for a new word to search
\\[dictionary-lookup-definition] search for word at point
\\[forward-button] or \\`TAB' move point to the next link
\\[backward-button] or \\`S-TAB' move point to the previous link
\\[dictionary-match-words] ask for a pattern and list all matching words
\\[dictionary-select-dictionary] select the default dictionary
\\[dictionary-select-strategy] select the default search strategy
\\`RET' visit link at point
\\`<mouse-2>' visit clicked link"
(buffer-disable-undo)
(setq-local dictionary-data-stack nil)
(setq-local dictionary-position-stack nil)
(make-local-variable 'dictionary-current-data)
(make-local-variable 'dictionary-positions)
(make-local-variable 'dictionary-default-dictionary)
(make-local-variable 'dictionary-default-strategy)
;; Replace the tool bar map with `dictionary-tool-bar-map'.
(setq-local tool-bar-map dictionary-tool-bar-map)
(add-hook 'kill-buffer-hook #'dictionary-close t t))