The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [killing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
21 views

Command that does different things based on whether something is selected

I am trying to make emacs function somewhat like sublime text, where C-x cuts text that is selected and cuts the whole line when nothing is selected. I got the full-line cut to work using (global-set-...
2
votes
1answer
33 views

Allow C-w to kill a region only if it is selected

Sometimes (rarely I would say) I press C-w by mistake and if the mark defines a non empty region, it gets deleted. The few times this happened I just pressed undo, but I am afraid that sooner or ...
1
vote
1answer
62 views

Delete a line by relative line number

I'm looking for solutions/suggestions on how to delete a line not under cursor but by relative line number. For example, how to delete the line which is 5 lines after the cursor without going to it in ...
1
vote
3answers
72 views

quickly kill and then yank parts of a program

I very often encounter the problem that I have to cut out a part of an expression and need to copy it somerhere else. For example the following python line: courtage_text = data["expose"]["brokerage"]...
6
votes
2answers
273 views

copy region without leading indentation

I often find myself copying a region of code that is deep inside the indented structure. Since I don't want it to end up in a codeblock with superfluous indentation (given that the context is missing),...
0
votes
0answers
54 views

dealing with s-expressions in javascript without paredit

I was using paredit for other languages apart from lisp and it was great for being able to delete and yank whole functions etc. but it was also quite buggy with web-mode and js2-mode. Fir example, I ...
5
votes
3answers
366 views

How to do paredit-kill backwards?

Most everyone who uses paredit has used paredit-kill (i.e., C-k), which allows one to delete a line forwards whilst keeping delimiters balanced properly. But how does one do this in the reverse ...
1
vote
2answers
91 views

Kill and yank (append?) text from buffer to bottom of same buffer

I want to be able to kill selected text and yank it to the bottom of the buffer from which it was killed. How do I do this efficiently, meaning not with C-k, moving point to end of buffer, C-y?
0
votes
1answer
75 views

What key sequence is killing a large chunk of my buffer?

What is the key sequence for deleting from the current position to the beginning of the buffer? I ask not because I want to use the sequence but to prevent it from happening. I always do this by ...
3
votes
2answers
273 views

Kill URL at point

I would like a way to kill the URL under the point. I have tried mark-thing, next-visible-thing etc. from the thing-cmds package, but they either do not know how to move over URLs in nxml-mode or fail ...
2
votes
1answer
395 views

Strange behavior when killling text in term/multi-term [duplicate]

multi-term is my current goto when I want a command line in Emacs. However, I have noticed a strange behavior, and I am not sure whether it is a bug, or if it can be configured. If I type a command ...
1
vote
2answers
394 views

Kill rectangle with cua-mode support

There are many nice column editing features in CUA mode. After hitting Ctrl+RETURN, binded to cua-set-rectangle-mark, you get some help in the minibuffer: But I can't find the shortcut to cut/kill ...
2
votes
1answer
143 views

Kill the next sexp and its surrounding whitespace

kill-whole-line is quite useful as it completely deletes both content and whitespace unlike kill-line which only deletes contents in line. But in lisp-mode, it is necessary to keep parens in tact and ...