Emacs

Compiling Word War vi on Mac OS X

screenshot of word war vi running via X11 on Mac OS X

As mentioned in the previous post, Word War vi is a retro arcade game along the lines of Defender or Stargate, allowing you to play out the Emacs vs Vim wars in all their nostalgic glory. It’ll run on Mac OS X, but it takes a bit of preparation. Here’s what I did to get it running on Leopard (10.5.5); your mileage may vary on older OS versions. Also, I don’t have a joystick to test, so I am unsure if that will work or not.

  1. Download and unarchive wordwarvi
  2. First up, make sure you have XTools installed, which you’ll find on your Leopard install DVD. You’ll also need the X11.app found in your Applications/Utilities folder, but that is likely already there.
  3. Next, install MacPorts. This will make it very simple to install the next two packages.
  4. Once MacPorts is installed, go to the Terminal and type sudo port install libvorbis (you’ll need to enter your password).
  5. Repeat the process with sudo port install portaudio
  6. Lastly, we need to specify where a particular file is found on your system. Inside the wordwarvi folder, there are two text files to edit: ogg_to_pcm.c and wordwarvi.c

In both files, near the top, you’ll find a line that reads:

#include <malloc.h>

Change it to read:

#include <malloc/malloc.h>

And that’s all the preparatory steps. In the wordwarvi folder via the Terminal, type make. It will compile shortly, and then (assuming everything went well), you’ll only have to enter ./wordwarvi to play it via X11.app.

You might want to turn the volume down on your Mac to start with — the music was pretty loud on my system.

Thanks to Stephen Cameron for the great game!

links for 2007-06-19

  • Using Emacs org-mode for GTD A brief overview of org-mode Emacs and how it can be used to implement David Allen’s Getting Things Done methodology.
  • GTD with vim Using an outliner in VIM with dynamic todo lists

Full Screen

In preparation for NaNoWriMo, as well as connected to my recent explorations of Emacs and general Terminal goodness, I’ve done some investigating of what options are available for creating a full screen writing environment.

There are different meanings for “full screen” — at its simplest, one application is taking up most of or the entire screen. How much of the rest of the OS/UI environment is visible is the crux of the matter. Otherwise you can just maximize your favorite text editor’s window and be done with it.

After quite a bit of trying out various options and arrangements, I’ve settled on two. Read the rest of this article at O’Reilly: Full Screen Text Editing.

UPDATE: Merlin Mann creates a near-perfect full-screen environment using a cool combination of utilities, described in his article “Full screen mode update: Close enough

More Tour of California details. Wanting vim shortcuts everywhere. Revisiting One Big Text File.

More details on the planned Tour of California in this SF Chronicle article, Ambitious dreams for big California cycling race


The more I get used to the shortcuts in vim the more I find myself wishing its home-row movement keys worked in other applications. I get impatient moving to the arrow keys, much less grabbing a mouse. :)

There’s at least one place you can add vi mode: on the bash command line. Enter this:

set -o vi

Here’s a List of vi mode commands

And yes, there’s an emacs mode too. ;)

calmar.ws has a good article describing configuring Firefox with vi/vim movement keybindings (scroll down).


Giles revisits his One Big Text file musings with The end of One Big Text File

Unicode in text editors. All email sucks. Fog rising. Demoralizing sports moments.

Smart quotes (and more) in Vim and Emacs by Michael Smith at oreillynet.com, covering using Unicode text in those text editors.


carpeaqua: All E-Mail Sucks by Brent Simmons at inessential.com. Brent talks about the diffculty of creating a ‘great’ email Mac OS X email client. Dig the fact that he likes Mailsmith and mutt. Whoo-hoo mutt!


Go check out this gorgeous photo by Susan B. at flickr.com: …the fog is rising


Today was the day for both my teams — the Cowboys and the LA Kings — to lose in the last moments of the game. Demoralizing.

Syndicate content