diff options
| author | Juri Linkov | 2008-12-28 23:48:21 +0000 |
|---|---|---|
| committer | Juri Linkov | 2008-12-28 23:48:21 +0000 |
| commit | e8d24e5b0960898e4a93ee2918f677b375b68263 (patch) | |
| tree | 811f9caa5fd7b08a9b55ae2c383cf1e3595d2bb2 | |
| parent | fa862320ce8008fbff71b5623ba636dafcad8416 (diff) | |
| download | emacs-e8d24e5b0960898e4a93ee2918f677b375b68263.tar.gz emacs-e8d24e5b0960898e4a93ee2918f677b375b68263.zip | |
(butterfly): New command.
| -rw-r--r-- | lisp/misc.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/misc.el b/lisp/misc.el index ad7de36e8ef..6dafd2a5e4b 100644 --- a/lisp/misc.el +++ b/lisp/misc.el | |||
| @@ -106,6 +106,20 @@ With argument, do this that many times." | |||
| 106 | (interactive "p") | 106 | (interactive "p") |
| 107 | (forward-to-word (- arg))) | 107 | (forward-to-word (- arg))) |
| 108 | 108 | ||
| 109 | ;;;###autoload | ||
| 110 | (defun butterfly () | ||
| 111 | "This function is designed to be used only be the most | ||
| 112 | proficient hackers on earth. If equipped with a butterfly key, | ||
| 113 | it should be bound to C-x M-c M-butterfly (for further | ||
| 114 | information please refer to http://xkcd.com/378/)." | ||
| 115 | (interactive) | ||
| 116 | (if (yes-or-no-p "Do you really want to unleash the powers of the butterfly? ") | ||
| 117 | (progn | ||
| 118 | (message "Amazing physics going on...") | ||
| 119 | (sit-for (* 5 (/ (abs (random)) (float most-positive-fixnum)))) | ||
| 120 | (message "Successfully flipped one bit!")) | ||
| 121 | (message "Well, then go to www.xkcd.com!"))) | ||
| 122 | |||
| 109 | (provide 'misc) | 123 | (provide 'misc) |
| 110 | 124 | ||
| 111 | ;; arch-tag: 908f7884-c19e-4388-920c-9cfa425e449b | 125 | ;; arch-tag: 908f7884-c19e-4388-920c-9cfa425e449b |