Skip to content

Commit

Permalink
Add random-number function at [C-; r n]
Browse files Browse the repository at this point in the history
  • Loading branch information
smerritt committed Jul 18, 2013
1 parent 42d7df7 commit 7a3e9de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.el
Expand Up @@ -98,8 +98,13 @@
(interactive)
(insert (random-mac)))

(defun insert-random-number ()
(interactive)
(insert (number-to-string (random 9999999))))

(global-set-key [(control \;) ?r ?i] 'insert-random-ip)
(global-set-key [(control \;) ?r ?m] 'insert-random-mac)
(global-set-key [(control \;) ?r ?n] 'insert-random-number)


(add-hook
Expand Down

0 comments on commit 7a3e9de

Please sign in to comment.