[ back to Tom 7 Radar ]

u
p
d
a
t
e
emacs lost-mode (07 Jun 2008 at 00:31)
Spoiler alert! This emacs mode contains spoilers for the TV show Lost (Season 2). (I always wanted to say that, heh heh.) It will also make no sense to anyone who hasn't seen the show or used emacs.

Now that Lost Season 4 is over, I know you need something to tide you over for 9 months or whatever until it comes back. Therefore please enjoy this emacs mode simulating the Swan station computer from Lost. The modeline countdown timer will follow you in every buffer, ticking down the seconds.

Countdown


When reaching the 4 minute mark, you can use the Swan computer and do what you gotta do:

Swan


If you don't do what you gotta do, then you might get some System Failure:

System Failure


System Failure used to kill emacs without saving your buffers, but I decided this was a bit too cruel. Now you can live with System Failure indefinitely, meaning that you can safely run lost-mode as part of your regular day-to-day emacs use. If you have emacs I recommend trying it yourself so you can see the animations (particularly the timer reset animation). Put

lost.el


in a place where you like to store your emacs files (say, "/home/desmond/elisp") and then add

(load "/home/desmond/elisp/lost.el")


to your .emacs file (or the equivalent for your platform; don't forget to escape backslashes on win32). The mode is then activated on startup and cannot be disabled.
c
o
m
m
e
n
t
Chris (grw057-17.cis.upenn.edu) – 06.07.08 18:01:55
My simulated Dharma Intiative breaks from coq hacking have been very satisfying.

I almost wish it did destroy all my buffers - then I'd be afraid to fool around.

Or maybe I'd just play emacs tetris instead of reading blogs.
c
o
m
m
e
n
t
Adam (pool-72-95-130-147.pitbpa.fios.verizon.net) – 06.07.08 19:00:06
Sweet. This is a very important mode. Once Unicode 5.2 is released, and once Unicode is working correctly in Emacs, you'll be able to represent the hieroglyphics more accurately.
c
o
m
m
e
n
t
Tom 7 (h-72-244-70-221.phlapafg.dynamic.covad.net) – 06.07.08 19:17:49
Yeah, I'm not holding my breath for good Unicode support in emacs, but I was mildly sad that I had to settle for some conservative "weird" glyphs that are likely to be in your fonts. Patches absolutely welcome.
c
o
m
m
e
n
t
Adam (pool-72-95-130-147.pitbpa.fios.verizon.net) – 06.07.08 20:58:19
Ok great. One minor issue, the button is "pushed" not "pressed"
c
o
m
m
e
n
t
Tom 7 (h-72-244-70-221.phlapafg.dynamic.covad.net) – 06.08.08 00:17:34
Ah, thank you. Fixed.
c
o
m
m
e
n
t
Adam (pool-72-95-130-147.pitbpa.fios.verizon.net) – 06.08.08 21:03:40
Someday, far in the future: 𓋳𓏪𓍑𓅀𓏩
c
o
m
m
e
n
t
Adam (pool-72-95-130-147.pitbpa.fios.verizon.net) – 06.08.08 21:04:48
That didn't work.

Unicode test: I like Pittsburgh, because I need my ☂.
c
o
m
m
e
n
t
Adam (pool-72-95-130-147.pitbpa.fios.verizon.net) – 06.08.08 21:04:56
Bah!
c
o
m
m
e
n
t
Tom 7 (h-72-244-70-221.phlapafg.dynamic.covad.net) – 06.09.08 01:57:05
Of course I am escaping the ampersand, but you can probably paste UTF-8 right into this textbox?
c
o
m
m
e
n
t
Adam (macmillan.isr.cs.cmu.edu) – 06.09.08 11:10:28
Nope, that's what I did.
c
o
m
m
e
n
t
Tom 7 (pokemon.wv.cc.cmu.edu) – 06.09.08 14:53:32
Really? This is mysterious indeed...
c
o
m
m
e
n
t
Tom 7 (h-72-244-70-221.phlapafg.dynamic.covad.net) – 06.09.08 19:13:07
I ♡ heartsuit
c
o
m
m
e
n
t
Tom 7 (h-72-244-70-221.phlapafg.dynamic.covad.net) – 06.09.08 19:13:23
Wow, you're right, but I don't remember ever writing this code.
c
o
m
m
e
n
t
jonas (dsl5402b9a9.pool.t-online.hu) – 06.10.08 08:40:17
Tom 7: you didn't write it. The comment form doesn't have the encoding explicitly specified so the browser assumes it's the same as the encoding of the html where that form is. As that encoding isn't specified either (by the http response header nor meta tags in the html), browsers typically assume it's cp-1252 (but lies and says iso-8859-1) unless you've configured them to something different which people did do back in the days when lots of people put up webpages with national characters without specifying the encoding. Anyway, this means you can type 8859-1 characters () in the comment form but if you type anything else (őűŐŰ) the browser will still use 8859-1 encoding to submit the form and all bets are off what it will do. Mozilla variants are known to silently convert other characters to ampersand-escapes; whereas links converts them to flying accents but tries not to allow you to enter them in the form at first place.
c
o
m
m
e
n
t
Tom 7 (pokemon.wv.cc.cmu.edu) – 06.10.08 11:42:31
Thanks jonas! I began suspecting something like this after I made that last post. I'll look into specifying an encoding.
c
o
m
m
e
n
t
Anonymous (63.161.156.65.customer.sprintlink.com) – 08.03.09 16:13:37
I think all the encoding stuff is finally straightened out, btw.
c
o
m
m
e
n
t
maitesanti (hosted.by.pacificrack.com) – 08.31.10 05:55:51
activity rays dimming
c
o
m
m
e
n
t
Anonymous (62.198.65.254) – 01.02.12 09:08:00
It´s good, but it´s not great:)
I have a better version:)
p
o
s
t

a

c
o
m
m
e
n
t
[ Tom 7 Radar  •  Tom 7 on Google+  •  on Twitter  •  on Facebook ]