Take the 2-minute tour ×

How can I do a case-sensitive tags-search in Emacs?

share|improve this question
add comment

3 Answers

up vote 3 down vote accepted

If you don't want to mess with normal search (with C-s) you probably want to set tags-case-fold-search instead of case-fold-search. You can do what was mentioned:

(set-default 'tags-case-fold-search nil)

or using M-x customize-variable <RET> tags-case-search-nil and then change it to case-sensitive (0) by clicking on Value menu, and then saving it for future sessions (1) by clicking on State.

share|improve this answer
add comment


Correction to Trey Jackson's answer:

(set-default 'case-fold-search nil)

You need to quote the variable.

share|improve this answer
But this is only per buffer, need a global setting. –  WilliamKF Nov 23 '10 at 3:16
add comment

Building on your answer, this is what you need:

(set-default case-fold-search nil)

which sets the default value, which will affect all buffers that haven't set the value locally.

share|improve this answer
add comment

Your Answer


