Emacs | Oddmundo

/home/oddmunds/bin/macs

24-03-2010 17:55

This is a tiny script that's handy when you use emacs a lot and would like to use emacs server and emac­scli­ent, but does not like keep track of when the server is run­ning and not.

#!/bin/bash
emacsclient -c $1 || `emacs --daemon && macs $1`

This tries to start with emac­scli­ent (in a new window), but if there's no server run­ning and it fails, it wil start the server and then start the client.

The result is: Only one com­mand, that does what you want.

New Wordpress theme: emundo

01-05-2009 07:39

Tonight I began tinker­ing on a new Word­press theme for this blog. emundo as I call it is made to look like the way I've styled my GNU emacs. I got the idea while using emacs-w3m and think­ing that ‘this is what my blog should look like’.

Looks

At the time of writ­ing this emundo has a 80 char­ac­ter wide area for the main con­tent. I use full width bars on the Header-2 ele­ments to mimic frames. The theme prefers Ter­minus for main text and head­ers, but will fall back to default mono­spaced font. The Header-1 ele­ment uses the default serif.

The theme is based on my take on the gun­metal theme by David O'Toole for emacs. My take has less fluor­es­cent col­ours, but is still mostly the same as the original.

Infrastructure

Also new is that I have wised up and now track the theme with git. I set up a github repos­it­ory where you can wallop in the code and cheer me on as I improve it. You might fork it too if you like.

Moving forward

For my next trick I want to tweak the fonts, add a mode-line imit­a­tion at the bottom, expand for more stuff like tables and pictures.