Search code examples
searchemacscase-sensitive

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


Is there a shortcut? Ctrl + S gives I-search:, and that is case-insensitive.


Solution

  • You press M-c after you run search.

    This will set the case-sensitive flag.

    More generally, you can do: C-s C-h b to see all keybindings active during search, in isearch-mode-map.