Created
April 18, 2012 08:26
-
-
Save kosh04/2412049 to your computer and use it in GitHub Desktop.
#xyzzyで這いよれ!ニャル子さんのアレ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let ((i 0)) | |
(unless (get 'mode-line-format 'save) | |
(setf (get 'mode-line-format 'save) mode-line-format)) | |
(defun u-nya- () | |
(let ((pattern '("(」・ω・)」うー!" | |
"(/・ω・)/にゃー!" | |
"(」・ω・)」うー!" | |
"(/・ω・)/にゃー!" | |
"(」・ω・)」うー!" | |
"(/・ω・)/にゃー!" | |
"Let's\(・ω・)/にゃー!") | |
)) | |
(setq mode-line-format (concat (get 'mode-line-format 'save) " " (nth i pattern))) | |
(setq i (rem (1+ i) (length pattern))))) | |
(add-hook '*post-command-hook* 'u-nya-)) | |
;; お片づけ | |
(progn | |
(delete-hook '*post-command-hook* 'u-nya-) | |
(setf mode-line-format (get 'mode-line-format 'save))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment