Skip to content

Instantly share code, notes, and snippets.

@magnars
Created July 17, 2012 12:28
Show Gist options
  • Save magnars/3129159 to your computer and use it in GitHub Desktop.
Save magnars/3129159 to your computer and use it in GitHub Desktop.
Inverse of C-k
(global-set-key (kbd "C-S-k") (lambda () (interactive)
(kill-region (save-excursion (beginning-of-line) (point))
(point))))
@bodil
Copy link

bodil commented Jul 19, 2012

Actually, you can do that by calling (kill-line 0) - ie. just C-0 C-k.

@magnars
Copy link
Author

magnars commented Jul 20, 2012

Nice! Thanks. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment