* Possible to ignore diacritics with isearch?
@ 2021-12-29 16:53 Tor Kringeland
2021-12-29 18:32 ` Eli Zaretskii
2021-12-29 18:38 ` Teemu Likonen
0 siblings, 2 replies; 4+ messages in thread
From: Tor Kringeland @ 2021-12-29 16:53 UTC (permalink / raw)
To: help-gnu-emacs
Is it possible to instruct commands like `isearch-forward' in Emacs to
ignore diacritics? For example so that searching for "galaxia" would
match strings like "galáxia". (Mainly I'm using `helm-occur' and
`org-refile', both of which don't ignore diacritics.)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Possible to ignore diacritics with isearch?
2021-12-29 16:53 Possible to ignore diacritics with isearch? Tor Kringeland
@ 2021-12-29 18:32 ` Eli Zaretskii
2021-12-29 18:38 ` Teemu Likonen
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2021-12-29 18:32 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Wed, 29 Dec 2021 17:53:46 +0100
> From: Tor Kringeland <tor.a.s.kringeland@ntnu.no>
>
> Is it possible to instruct commands like `isearch-forward' in Emacs to
> ignore diacritics? For example so that searching for "galaxia" would
> match strings like "galáxia". (Mainly I'm using `helm-occur' and
> `org-refile', both of which don't ignore diacritics.)
Yes, it's possible.
Read about "Lax Search" in the Emacs manual.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Possible to ignore diacritics with isearch?
2021-12-29 16:53 Possible to ignore diacritics with isearch? Tor Kringeland
2021-12-29 18:32 ` Eli Zaretskii
@ 2021-12-29 18:38 ` Teemu Likonen
2021-12-30 18:30 ` Tor Kringeland
1 sibling, 1 reply; 4+ messages in thread
From: Teemu Likonen @ 2021-12-29 18:38 UTC (permalink / raw)
To: Tor Kringeland, help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 577 bytes --]
* 2021-12-29 17:53:46+0100, Tor Kringeland wrote:
> Is it possible to instruct commands like `isearch-forward' in Emacs to
> ignore diacritics? For example so that searching for "galaxia" would
> match strings like "galáxia". (Mainly I'm using `helm-occur' and
> `org-refile', both of which don't ignore diacritics.)
Yes:
(setq search-default-mode 'char-fold-to-regexp)
Emacs manual info node tells about all that:
(emacs) Lax Search
--
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 434 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-30 18:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-29 16:53 Possible to ignore diacritics with isearch? Tor Kringeland
2021-12-29 18:32 ` Eli Zaretskii
2021-12-29 18:38 ` Teemu Likonen
2021-12-30 18:30 ` Tor Kringeland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).