completions-merging-modes

completions-merging-modes is a variable defined in `completion.el'.
Its value is
(lisp c)


Documentation:
List of modes {`c' or `lisp'} for automatic completions merging.
Definitions from visited files which have these modes
are automatically added to the completion database.

You can customize this variable.