cofi / evil-numbers

Increment and decrement numbers in Emacs
GNU General Public License v3.0
119 stars 23 forks source link

** Detected Literals

** Install Put in =load-path=, =(require 'evil-numbers)= and bind, for example:

+BEGIN_SRC emacs-lisp

 (global-set-key (kbd "C-c +") 'evil-numbers/inc-at-pt)
 (global-set-key (kbd "C-c -") 'evil-numbers/dec-at-pt)

+END_SRC

or only in evil's normal state:

+BEGIN_SRC emacs-lisp

(define-key evil-normal-state-map (kbd "C-c +") 'evil-numbers/inc-at-pt)
(define-key evil-normal-state-map (kbd "C-c -") 'evil-numbers/dec-at-pt)

+END_SRC

For window system users the keypad =+= and =-= present an alternative that can be directly bound without shadowing the regular =+= and =-=:

+BEGIN_SRC emacs-lisp

(define-key evil-normal-state-map (kbd "") 'evil-numbers/inc-at-pt) (define-key evil-normal-state-map (kbd "") 'evil-numbers/dec-at-pt)

+END_SRC

** Usage Position cursor on literal and play with your numbers!

** Known Bugs See http://github.com/cofi/evil-numbers/issues

** Contributors