Last active
August 29, 2015 14:11
-
-
Save tomoya/098be003b71458479285 to your computer and use it in GitHub Desktop.
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 delete-word (arg) | |
"Delete characters forward until encountering the end of a word. | |
With argument, do this that many times." | |
(interactive "p") | |
(delete-region (point) (progn (forward-word arg) (point)))) | |
(defun backward-delete-word (arg) | |
"Delete characters backward until encountering the end of a word. | |
With argument, do this that many times." | |
(interactive "p") | |
(delete-word (- arg))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment