Search code examples
emacscedet

CEDET: Case insensitive completion?


I am programming in C++ using CEDET and I would like autocompletion to be case-insensitive. Is there a way to do this? For instance, semantic will complete:

GL_POI => GL_POINTS

but not

gl_poi => GL_POINTS

Thanks!


Solution

  • case-fold is the usual phrase to look for.

    M-x apropos-variable RET case-fold RET turns up the semantic-case-fold variable, so I'd try that first.

    You'll notice that this variable is automatically buffer-local, so you may want to set a default value, if you decide you want it enabled for all situations:

    (set-default 'semantic-case-fold t)