Created
August 25, 2015 16:01
-
-
Save hollobon/b62fde98c6240b8ed48e to your computer and use it in GitHub Desktop.
Convert binary (0b) literals to hex (0x) literals in Emacs
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
M-x replace-regexp 0b\([01]+\) \,(format "0x%X" (string-to-number \1 2))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment