Questions tagged [deletion]

47 questions
7
votes
1 answer

backward-kill-word ignores whitespaces, is there another friendlier version?

Emac's backward-kill-word tends to delete more than I want. E.g when I press delete multiple times on this: (key-chord "qf" 'helm-org-in-buffer-headings) ;heading search. | I get: 1. (key-chord "qf" 'helm-org-in-buffer-headings) ;heading| 2.…
Leo Ufimtsev
  • 4,558
  • 3
  • 23
  • 46
5
votes
4 answers

How can I delete specified lines?

I want to delete lines with number 03,08,13,18,...., 3+5n. How can I do that? Thank you very much.
yuxuan
  • 781
  • 4
  • 15
2
votes
1 answer

Kill like vim or Sublime Text

I'm "new" with Emacs. I'm making my own set up but I can't do one thing with killing words. You know what M-DEL does by default, but I want to make like Sublime Text or VIM. I'll do an example (this is the original text): Hi, I'm captainepoch <…
user11867
1
vote
1 answer

Delete all non-word characters between two words

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…
Atemu
  • 302
  • 1
  • 11