Skip to content

Instantly share code, notes, and snippets.

@ceving
Created February 5, 2016 15:22
Show Gist options
  • Save ceving/86a7b76b8c0d9aeb670b to your computer and use it in GitHub Desktop.
Save ceving/86a7b76b8c0d9aeb670b to your computer and use it in GitHub Desktop.
Delete backward without adding the text into the kill ring.
(defun backward-delete-sentence (&optional arg)
"Delete back from point to start of sentence.
With arg, repeat, or kill forward to Nth end of sentence if negative arg -N."
(interactive "p")
(delete-region (point) (progn (backward-sentence arg) (point))))
(global-set-key (kbd "M-<backspace>") 'backward-delete-sentence)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment