pic-a-sig

There are lots of random signature programs out there. There are several for Emacs. My pic-a-sig may not be the most elegant but it has a few nice features a couple of which I think are uncommon:

The only drawback being that you need to use Emacs. Normally this is not a drawback, but perhaps you're using a mailer that doesn't allow external editors.

Okay here's how it works. Get the pic-a-sig code below and put it in your .emacs. Then make a file in your home directory called .pic-a-sig containing your random signatures, one per line. You can have random sigs which span multiple lines, but you must represent the linebreaks with ^M (Ctrl-Q-RETURN). A newline represents the end of a sig.

Next edit your .signature file, or whatever file your mailer is going to insert into the editor. The magic string that pic-a-sig looks for is $$Sig$$. So you can have a .signature like this:

-- 
Adrian Hosey
Grand High Poobah
$$Sig$$
and the last line will be replaced with a random sig.

The provided pic-a-sig code already hooks pic-a-sig to write-file-hooks. The first time you save the buffer you'll see $$Sig$$ be replaced. If you want to cheat instead, run the sig-cheat function before saving the buffer. sig-cheat will prompt you for a pattern and select a line from .pic-a-sig that contains the pattern.

You can access sig-cheat and select-sig-at-point with Meta-x or you can bind them to key combos like this:

(global-set-key "\C-x\C-a" 'select-sig-at-point)

TODO

With the exception of the last one those all smell of overengineering, but they would be fun. There is a certain (small?) class of people who love to express themselves with sigs. A couple friends of mine wrote sig generators that composed a haiku based on the message body.

Maintained by Adrian Hosey alh@warhound.org

Back to warhound.org