File: minibuf-eldef.el.html

Defines the mode minibuffer-electric-default-mode(var)/minibuffer-electric-default-mode(fun).

When active, minibuffer prompts that show a default value only show the default when it's applicable -- that is, when hitting RET would yield the default value. If the user modifies the input such that hitting RET would enter a non-default value, the prompt is modified to remove the default indication (which is restored if the input is ever restore to the match the initial input).

Defined variables (4)

minibuffer-default-in-prompt-regexpsA list of regexps matching the parts of minibuffer prompts showing defaults.
minibuffer-eldef-shorten-defaultIf non-nil, shorten "(default ...)" to "[...]" in minibuffer prompts.
minibuffer-electric-default-modeNon-nil if Minibuffer-Electric-Default mode is enabled.
minibuffer-electric-default-mode-hookHook run after entering or leaving ‘minibuffer-electric-default-mode’.

Defined functions (3)

minibuf-eldef-setup-minibuffer()
minibuf-eldef-update-minibuffer()
minibuffer-electric-default-mode(&optional ARG)

Defined faces (0)