Variable: completion-category-defaults

completion-category-defaults is a variable defined in minibuffer.el.gz.

Value

((email (styles substring partial-completion))
 (ecomplete (styles basic substring))
 (eglot-capf (styles eglot--dumb-flex)) (project-buffer)
 (buffer (styles basic substring))
 (unicode-name (styles basic substring))
 (project-file (styles substring)) (xref-location (styles substring))
 (info-menu (styles basic substring))
 (symbol-help (styles basic shorthand substring)))

Documentation

Default settings for specific completion categories.

Each entry has the shape (CATEGORY . ALIST) where ALIST is an association list that can specify properties such as:
- styles: the list of completion-styles to use for that category.
- cycle: the completion-cycle-threshold to use for that category.
- cycle-sort-function: function to sort entries when cycling.
- display-sort-function: function to sort entries in *Completions*.
- group-function: function for grouping the completion candidates.
- annotation-function: function to add annotations in *Completions*.
- affixation-function: function to prepend/append a prefix/suffix.
- eager-display: non-nil to show *Completions* eagerly.
- eager-update: non-nil to update *Completions* eagerly.

Categories are symbols such as buffer and file, used when completing buffer and file names, respectively.

Also see completion-category-overrides and completion-category-get.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defvar completion-category-defaults
  '((buffer (styles . (basic substring)))
    (unicode-name (styles . (basic substring)))
    ;; A new style that combines substring and pcm might be better,
    ;; e.g. one that does not anchor to bos.
    (project-file (styles . (substring)))
    (xref-location (styles . (substring)))
    (info-menu (styles . (basic substring)))
    (symbol-help (styles . (basic shorthand substring))))
  "Default settings for specific completion categories.

Each entry has the shape (CATEGORY . ALIST) where ALIST is
an association list that can specify properties such as:
- `styles': the list of `completion-styles' to use for that category.
- `cycle': the `completion-cycle-threshold' to use for that category.
- `cycle-sort-function': function to sort entries when cycling.
- `display-sort-function': function to sort entries in *Completions*.
- `group-function': function for grouping the completion candidates.
- `annotation-function': function to add annotations in *Completions*.
- `affixation-function': function to prepend/append a prefix/suffix.
- `eager-display': non-nil to show *Completions* eagerly.
- `eager-update': non-nil to update *Completions* eagerly.

Categories are symbols such as `buffer' and `file', used when
completing buffer and file names, respectively.

Also see `completion-category-overrides' and `completion-category-get'.")