Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add readme.

Signed-off-by: Michael Markert <markert.michael@googlemail.com>
  • Loading branch information...
commit e40b606d92d87cdae5a4eeee8ba0cf49fe8556c2 1 parent d37c981
@cofi authored
Showing with 32 additions and 1 deletion.
  1. +31 −0 README.org
  2. +1 −1  evil-numbers.el
View
31 README.org
@@ -0,0 +1,31 @@
+* Evil Numbers
+ - Increment / Decrement binary, octal, decimal and hex literals
+
+ - works like C-a/C-x in vim, i.e. searches for number up to eol and then
+ increments or decrements and keep zero padding up (unlike in vim)
+
+** Detected Literals
+ - binary, e.g. =0b0101=, =0B0101=
+ - octal, e.g. =0o755=, =0O700=
+ - hexadecimal, e.g. =0xDEADBEEF=, =0XCAFE=
+
+** 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
+
+** Usage
+ Position cursor on literal and play with your numbers!
+
+** Known Bugs
+ See http://github.com/cofi/evil-numbers/issues
View
2  evil-numbers.el
@@ -5,7 +5,7 @@
;; URL: http://github.com/cofi/evil-numbers
;; Git-Repository: git://github.com/cofi/evil-numbers.git
;; Created: 2011-09-02
-;; Version: 0.2
+;; Version: 0.3
;; Keywords: numbers increment decrement octal hex binary
;; This file is not part of GNU Emacs.
Please sign in to comment.
Something went wrong with that request. Please try again.