KillingAndYanking a line backwards can be done with
‘C-0 C-k’ or
‘C-u 0 C-k’.
Deleting words backwards with
‘backward-kill-word’) is useful since each kill appends to the kill ring and is available as a single yank. If the point is anywhere in the first sentence,
‘C-x DEL’ (
‘backward-kill-sentence’) can also delete to the beginning of the line.
‘C-M-backspace’ is bound to restarting X Window or rebooting the system with the Linux kernel, so beware.
(defun backward-kill-line (arg) "Kill ARG lines backward." (interactive "p") (kill-line (- 1 arg)))
You may want to bind it to a different key
(global-set-key "\C-cu" 'backward-kill-line) ;; `C-c u'
To join a line with the previous use `
‘delete-indentation’). It deletes the newline character on the previous line. To delete the newline at the end of the current line use `