[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Searching text
From: |
Rudolf Adamkovič |
Subject: |
Re: Searching text |
Date: |
Wed, 04 Sep 2024 01:39:58 +0200 |
Heime <heimeborgia@protonmail.com> writes:
> I need to search for phrases like 'others contend' within a buffer, even
> when they span across multiple lines.
Me too. From my Emacs config:
Search across spaces, tabs, and newlines.
#+BEGIN_SRC emacs-lisp :results none
(with-eval-after-load 'isearch
(setq isearch-lax-whitespace t
isearch-regexp-lax-whitespace t
search-whitespace-regexp "[ \t\r\n]+"))
#+END_SRC
Works well. Enjoy!
Rudy
--
"It is no paradox to say that in our most theoretical moods we may be
nearest to our most practical applications." --- Alfred North
Whitehead, 1861-1947
Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org