Function: cape-dict

cape-dict is an interactive and natively compiled function defined in cape.el.

Signature

(cape-dict &optional INTERACTIVE)

Documentation

Complete word from dictionary at point.

This completion function works best if the dictionary is sorted by frequency. See the custom option cape-dict-file. If INTERACTIVE is nil the function acts like a Capf.

Key Bindings

cape-prefix-map w

Source Code

;; Defined in /nix/store/nxaggkd0bn9kr2xfg9hyw77q51q20r8y-emacs-packages-deps/share/emacs/site-lisp/elpa/cape-20260927.2347/cape.el
;;;###autoload
(defun cape-dict (&optional interactive)
  "Complete word from dictionary at point.
This completion function works best if the dictionary is sorted
by frequency.  See the custom option `cape-dict-file'.  If
INTERACTIVE is nil the function acts like a Capf."
  (interactive (list t))
  (if interactive
      (cape-interactive #'cape-dict)
    (pcase-let ((`(,beg . ,end) (cape--bounds 'word)))
      `( ,beg ,end
         ,(completion-table-case-fold
           (cape--dynamic-table beg end #'cape--dict-list)
           (not (cape--case-fold-p cape-dict-case-fold)))
         ,@cape--dict-properties))))