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))
(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))
(calendar-month (display-sort-function . identity)))
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.
Categories are symbols such as buffer and file, used when
completing buffer and file names, respectively.
Also see completion-category-overrides.
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)))
(calendar-month (display-sort-function . identity)))
"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.
Categories are symbols such as `buffer' and `file', used when
completing buffer and file names, respectively.
Also see `completion-category-overrides'.")