Emacs Delete To Start Of Line

Kill To Start

Emacs does not have a kill-to-start-of-line key-combo or built-in function.

There are a number of ways round this very minor problem.

1. Use Ctrl-a Ctrl-k

Ctrl-a moves to start of current line.
Ctrl-k kills to end of current line.

2. Use Ctrl-0 (zero) Ctrl-k

Ctrl-0 sends to point to zero char on the line.
Ctrl-k kills to end of current line.

3. Define a function, then bind it to unused keys.

(defun kill-start-of-line ()
"kill from point to start of line"
(interactive)
(kill-line 0)
)

Bind it to Ctrl-; right next to Ctrl-k.

(define-set-key (kbd "C-;") 'kill-start-of-line)

When you press Ctrl-; emacs deletes from cursor position to start of current line.

Done.