Skip to main content

Questions tagged [case-folding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
28 views

how to make magit log search case-insensitive

How would I make magit log searches case insensitive.. I see references in emacs to transient:magit-log-refresh:--regexp-ignore-case but not sure how to turn it on.
RoyM's user avatar
  • 135
0 votes
0 answers
48 views

Fully case insensitive org property search

I would like to be able to perform fully case insensitive searches of properties and their values in my org files, and have the results presented in a sparse tree. For example, if I have sections ...
user2567544's user avatar
1 vote
2 answers
134 views

Single letter abbrev and expansion case

If I define an abbrev like wo -> without, and then type Wo, it's expanded to Without, starting with a capital letter. This is the behavior that I want. However, I'd like to define the abbrev t ->...
NTC's user avatar
  • 57
0 votes
1 answer
43 views

How can I use 'transients' in 'magit' to enable case-insensitive search? [closed]

I got it working a year ago, then my machine died. I've been unable to figure out the interface to transient. When I view the levels (green and red, with numbers in them), I hit '-i' but see an error '...
jmckitrick's user avatar
0 votes
1 answer
112 views

How can I recursively find and replace text in case sensetive?

I am using combination of following solutions in order to find-and-replace matched text in all Python files: Using Emacs to recursively find and replace in text files not already open How can I ...
alper's user avatar
  • 1,400
0 votes
1 answer
82 views

How can I query replace region from top case-sensitively?

I am using following answer to search and replace a word in the entire buffer: (defun query-replace-region-or-from-top () (interactive) (progn (let ((orig-point (point))) (if (use-...
alper's user avatar
  • 1,400
2 votes
2 answers
803 views

How do I search/replace with case sensitive search?

In emacs I'm using M-% to replace occurrences of b_abcd (of which there are only a few) with B_abcd (of which there are very many). Currently Emacs asks if it's OK to replace at each B_abcd, which ...
HarryH's user avatar
  • 131
0 votes
1 answer
117 views

How to query-replace with exact match with the exact given word in case-sensetive manner?

I have HELLOWORLD string inside my file. My setup: (defun my-find-orgfiles () (interactive) (setq toggle-case-fold-search 0) ; Turn Off Smart Case Sensitivity (find-name-dired "~/folder&...
alper's user avatar
  • 1,400
3 votes
1 answer
274 views

How to ignore case when switching buffers?

I want to open a buffer called Echo.md and switch-buffer (C-x b) does not auto-complete it when I type echo because of the case. But find-file does auto-complete from lower-case to upper-case. The ...
emonigma's user avatar
  • 1,927
0 votes
1 answer
97 views

Why after search-toggle-case-fold text is select?

windows 10, emacs 26.1 I want to set I-search case sensitive mode. Before: M-x isearch-toggle-case-fold after: Now it's search in case sensitive mode. Nice. But why it select text? P.S. If I ...
a_subscriber's user avatar
  • 4,174
0 votes
2 answers
596 views

I-search - case sensitive

windows 10, emacs 26.1 When I use I-search, then Emacs ignore case sensitive. but I need case sensitive I-search
a_subscriber's user avatar
  • 4,174
2 votes
3 answers
554 views

Highlight regexp case insensitive

Is there a way to use highlight-regexp in a case-insensitive way? I'm parenthesizing an expression in my regexp and refer to it using \1 later and I want to match this regardless of case. I'm trying ...
Alfe's user avatar
  • 121
1 vote
1 answer
431 views

Case-sensitive search and replace in elisp in spacemacs

Running Spacemacs v.0.200.13 on emacs 25.2.2 on Kubuntu 18.04. Consider the following code: (defun xx-ll () (interactive) (save-excursion (goto-char (point-min)) (xx-replace-...
deshmukh's user avatar
  • 1,912
0 votes
1 answer
158 views

case-fold-search apparently not taking effect in re-search-forward

I wrote the following command to do a regexp replacement in a region. (defun camel-case-to-underscore (a b &optional use-dash) (interactive "r") (save-excursion (let ((sep (if use-dash "-...
erjoalgo's user avatar
  • 873
5 votes
2 answers
186 views

How to turn every ALL CAP word in a buffer into Title case?

I need to fix a large .bib file where all proper names are in ALL CAPITALS (thanks ProQuest!) Is there an elisp function that searches a buffer/region for words in all capitals and turns all ...
stefano's user avatar
  • 175
2 votes
1 answer
152 views

How can i keep the case when I am using select and paste to C-s input field?

I see a word in buffer1. I want to look for it in buffer2. I select the word in buffer1. I select buffer2 as my current buffer, hit C-s, and press mouse-2 (the middle mouse button). Emacs converts ...
user1134991's user avatar
8 votes
2 answers
2k views

How to do case sensitive searches using evil's evil-search?

Unlike isearch, evil-search mode ignores case-fold-search option. Using evil-search like this for eg: (setq-default evil-search-module 'evil-search) Is it possible to make evil-search case ...
ideasman42's user avatar
  • 8,856
9 votes
3 answers
2k views

how do I do case sensitive searches using evil/spacemacs?

I'm trying to perform a search and replace in spacemacs but I need it to be case sensitive when by default it appears to be case insensitive. So I try to do :set noignorecase but then I have this ...
ChiseledAbs's user avatar
1 vote
1 answer
127 views

Using replace-regexp-in-string without case folding

I'm trying to use replace-regexp-in-string (see function below) and I need to detect the boundary between a lower case and upper case character. Apparently let-binding case-fold-search to nil doesn't ...
Alexis Layton's user avatar
5 votes
2 answers
2k views

in Emacs regex, how to search for uppercase letters only?

I'm trying to build a function but having trouble with the regex. Specifically, I want to match capital letters only. This function is supposed to capitalize words that are in lowercase (the → The) ...
incandescentman's user avatar
25 votes
1 answer
8k views

How to perform case-sensitive query-replace?

When I do M-x query-replace to replace all occurrences of v by w, then it also matches V (uppercase V). How to force emacs to only find lowercase v ?
Name's user avatar
  • 7,905
5 votes
1 answer
850 views

Case-insensitive filename completion in `shell-command'

I know I can get case-insensitive filename completion in the minibuffer using read-file-name-completion-ignore-case, but this doesn't seem to apply to all filename completion in the minibuffer. ...
mgalgs's user avatar
  • 474
5 votes
1 answer
486 views

Search and replace with case preservation and plurals

Is there a way (or package) to search and replace code like: class Account def list_accounts end end to class Company def list_companies end end Basically I want to replace account(s) with ...
Cezar Halmagean's user avatar