From: Leo <sdl.web@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: This is what happens when your cat uses your Emacs
Date: Mon, 16 Jan 2012 17:32:57 +0800 [thread overview]
Message-ID: <m1d3akc7qu.fsf@gmail.com> (raw)
In-Reply-To: 87pqekpq79.fsf@gmx.com
On 2012-01-16 06:15 +0800, Eric Schulte wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> C-M-S-s-z is undefined.
>>
>> A proof if ever that Emacs users need cats.
>> BTW, we should probably bind it to some cat command.
>>
>
> how about,
>
> (defun cat-command ()
> "A command for cats."
> (interactive)
> (require 'animate)
> (let ((mouse "
> ___00
> ~~/____'>
> \" \"")
> (h-pos (floor (/ (window-height) 2)))
> (contents (buffer-string))
> (mouse-buffer (generate-new-buffer "*mouse*")))
> (save-excursion
> (switch-to-buffer mouse-buffer)
> (insert contents)
> (setq truncate-lines t)
> (animate-string mouse h-pos 0)
> (dotimes (_ (window-width))
> (sit-for 0.01)
> (dotimes (n 3)
> (goto-line (+ h-pos n 2))
> (move-to-column 0)
> (insert " "))))
> (kill-buffer mouse-buffer)))
Should this be added to the startup screen?
Leo
next prev parent reply other threads:[~2012-01-16 9:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-14 19:43 This is what happens when your cat uses your Emacs Jose E. Marchesi
2012-01-14 19:47 ` Lennart Borgman
2012-01-14 19:54 ` Jose E. Marchesi
2012-01-15 8:50 ` Harald Hanche-Olsen
2012-01-14 19:59 ` Jose E. Marchesi
2012-01-15 16:44 ` Stefan Monnier
2012-01-15 17:08 ` Drew Adams
2012-01-15 17:28 ` Bastien
2012-01-15 22:15 ` Eric Schulte
2012-01-15 22:27 ` Lennart Borgman
2012-01-15 23:52 ` Jambunathan K
2012-01-16 5:12 ` Jambunathan K
2012-01-16 9:32 ` Leo [this message]
2012-01-16 5:45 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1d3akc7qu.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.