How to write for humans using the worlds best text editor.

Do you use Linux? Do you write for humans in addition to writing for computers? Is there just a tiny itsy bitsy part of you that would like to replace your sturdy Linux desktop with a sleek looking Mac OS X? If so you might just fancy emacswriteroom.

Emacswriteroom is not an emacs derived application, it just a set of emacs configurations that takes it’s cue from Writeroom. At some point I might turn these configurations into a debian/ubuntu package but for the time being you’ll have to follow the instructions on this page to set up emacswriteroom.

Lorem Ipsum to the death.

Ubuntu Feisty Fawn Howto

This is specifically for people running Ubuntu/Feisty Fawn. But it shouldn’t be hard to modify for other distros.

1. Install emacs-snapshot-gtk and friends

emacswriteroom needs the emacs-snapshot-gtk package. That’s how we get the nice font rendering. Feisty includes this package but for some reason the maintainers haven’t compiled it with the proper font support so you need to get it elsewhere.

Add this to your /etc/apt/sources.list

deb http://debs.peadrop.com feisty backports

Then run

apt-get update && apt-get install emacs-snapshot-gtk wmctrl msttcorefonts

wmctrl is needed to put emacs in fullscreen mode. msttcorefonts are some well made fonts from the kind folks in Redmond.

2. Get the emacswriteroom tarball.

Now download this tar-ball Say you downloaded it your ~/Desktop Here’s how to install it:

cd /usr/local
sudo tar zxvf ~/Desktop/emacswriteroom.tar.gz 
cd /usr/local/bin/
ln -s /usr/local/emacswriteroom/emacswriteroom

Instructions for use.

(global-set-key [(f1)] 'writeroom)
(global-set-key [(f2)]  (lambda () "set swedish dictionary" (interactive)
(global-set-key [(f3)]  (lambda () "set american dictionary" (interactive)
(global-set-key [(f4)] 'flyspell-buffer) 
(global-set-key [(f5)] 'flyspell-mode)
(global-set-key [(f6)] 'menu-bar-mode)
(global-set-key [(left-margin) (C-mouse-4)] 'wr-increase-margins)
(global-set-key [(left-margin) (C-mouse-5)] 'wr-decrease-margins)
(global-set-key [(right-margin) (C-mouse-4)] 'wr-increase-font) 
(global-set-key [(right-margin) (C-mouse-5)] 'wr-decrease-font)
(global-set-key (read-kbd-macro "C-+") 'wr-increase-font)
(global-set-key (read-kbd-macro "C--") 'wr-decrease-font)
(global-set-key "C-x C-r" 'recentf-open-files)

Bugs

Lots of em. Most irritating thing is that sometimes the paragraph filling gets confused and the lines starts to overflow. At that point you need to press F1 to set things straight.

The code is very messy. It presupposes that you’re using the markdown format.