unsealed counsel

Posts tagged "hydra":

Operating on numbers with emacs hydra

05 Jul 2015

Operating on numbers in place in any emacs buffer is one of the cool features that no one thinks they need, but is surprisingly handy, especially for converting bit-masks between decimal and hexadecimal during programming. Akinori Musha's operate-on-number package makes it very easy to set it up with a single keybinding. The only minor issue is that the instructions for setting it up refer to smartrep while my preferred package for setting up such keybindings is hydra. Assuming a recent enough version of hydra (where an escaping bug has been fixed), here is the elisp code needed to set up operate-on-number using hydra:

...
Tags: emacs hydra elisp
Other posts
Creative Commons License
runes.lexarcana.com by Ravi R Kiran is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License .