I am often in a situation where there are two words with a bunch of symbols in between like this:
word1|); }; } word2
Now I'd like to delete those symbols + whitespace between the words and maybe replace them with a single space, depending on what I want to do afterwards. This should work similar to M-\
and C-SPC
but for non-word characters other than whitespace too:
word1| word2
M-d
does delete those symbols but it also deletes the word behind them which I don't want:
word1|
C-SPC M-f M-b C-w
technically works but is cumbersome.
Bonus: Sometimes I also only want to delete one set of symbols (separated by whitespace):
word1| }; } word2
In all of these cases I usually revert to using evil-mode with its definition of a word and delete operation but I'd like to have a pure emacs solution in my toolbelt too.