Created
February 5, 2016 15:22
-
-
Save ceving/86a7b76b8c0d9aeb670b to your computer and use it in GitHub Desktop.
Delete backward without adding the text into the kill ring.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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