Created
April 28, 2013 19:06
-
-
Save jmillikan/5478028 to your computer and use it in GitHub Desktop.
Emacs: Number of characters in range, as message and kill
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 range-pls () | |
"Get length of marked section as message and kill" | |
(interactive) | |
(let ((range (number-to-string (- (point) (mark))))) | |
(message range) | |
(kill-new range))) | |
(global-set-key (kbd "C-c r") 'range-pls) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment