Last active
December 10, 2015 11:29
-
-
Save lateau/4428083 to your computer and use it in GitHub Desktop.
delete all characters from current cursor position to beginning-of-line like vim's "C-u"
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-forward-all () | |
(interactive) | |
(let ((beg (point))) (move-beginning-of-line 1) (delete-region beg (point)))) | |
(global-set-key (kbd "C-u") 'delete-forward-all) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment