help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swapping Substrings


From: Philipp Stephani
Subject: Re: Swapping Substrings
Date: Sat, 31 Oct 2020 12:50:55 +0100

Am Sa., 31. Okt. 2020 um 12:50 Uhr schrieb Philipp Stephani
<p.stephani2@gmail.com>:
>
> Am Sa., 31. Okt. 2020 um 11:22 Uhr schrieb jai-bholeki via Users list
> for the GNU Emacs text editor <help-gnu-emacs@gnu.org>:
> >
> > I need to swap two sub-strings in a word. The idea is that with the cursor
> > within a string, the two sub-strings get swapped.
> >
> > Examples:
> >
> > For the word ParSkip with point on the letter S, one gets SkipPar
> >
> > For the word Keybinding with point on the letter b, one gets bindingKey
>
> You can enable subword-mode (M-x subword-mode RET) and then swap the
> words with M-t (transpose-words).

(That doesn't work with your second example though)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]