Created
July 19, 2012 02:28
-
-
Save Frozenlock/3140372 to your computer and use it in GitHub Desktop.
Uppercase word in emacs (with save-excursion)
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
(global-set-key (kbd "C-c u") | |
(lambda()(interactive) | |
(save-excursion | |
(let (pt) | |
(skip-chars-backward "-_A-Za-z0-9") | |
(setq pt (point)) | |
(skip-chars-forward "-_A-Za-z0-9") | |
(upcase-region pt (point))) | |
(message "UPPERCASE!")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment