file:https://img.shields.io/badge/license-GPL_3-orange.svg file:http://melpa.org/packages/shift-number-badge.svg file:http://stable.melpa.org/packages/shift-number-badge.svg
This Emacs package provides commands to increase and decrease the number at point (or the next number on the current line).
This package can be installed from MELPA (with M-x package-install
or
=M-x list-packages=).
For the manual installation, clone the repo, add the directory to =load-path= and add autoloads for the interactive commands:
(add-to-list 'load-path "/path/to/shift-number-dir")
(autoload 'shift-number-up "shift-number" nil t)
(autoload 'shift-number-down "shift-number" nil t)
As you can see in the gif demonstration:
M-x shift-number-up
increases the current number. If there is noM-x shift-number-down
decreases the current number.You may bind some keys to these commands in a usual manner, for example:
(global-set-key (kbd "M-+") 'shift-number-up)
(global-set-key (kbd "M-_") 'shift-number-down)
There are other packages for the same task (modifying the number at point):
Comparing with them, shift-number
has the following distinctions:
007
), they are preserved