New answers tagged

1

You can use query-replace-regexp with the following parameters: \b\(\w+\)\W+\1 for matching a word (saved as a matching subexpression by means of \( and \)), followed by non-word characters, then followed by the saved first word. \b matches a word delimiter, to avoid matching parts of words. \1 as the replacement (the matched word) If you want to highlight ...


4

It's not in the space category for regexp search because it's not in the space category, full stop. It's not in the space category because the space category is actually not used. I don't know why the space category is not used. A space is the mnemonic for the category “space for indent”. But the space character does not have the category “space for indent”. ...


Top 50 recent answers are included