UnityWiki

<<< Current version is 0.18 -- Vivek Dasmohapatra >>>


unity.el

unity.el is an emacs mode for editing Unity Wiki pages from the comfort and safety of emacs. It fetches the text for you to edit, provides syntax highlighting and a few functions to help with editing tables, and saves the pages back to the wiki when you're done.

emacs22 a couple of minor tweaks may be required when using unity.el under emacs22. I suspect I am the only user, but if you want to try it, drop me a line.

M-x unity-edit lets you edit a page (just enter PageName or page name when prompted)

M-x unity-save uploads said page to the wiki.

Normally unity.el should kill your old buffer when you save, but I have added code so that if a collision is detected, the old buffer hangs around and a new unity edit buffer is created, so that you can compare your version with the current page (eg with M-x ediff-buffers).

You can edit more than one page at a time, cutting and pasting between page and graveyard (or between pages) should work fine, there's no magic there.

You cannot currently save the buffer to a file and reopen it later for editing, I suppose I could add that, if people wanted.


Installation

See the source of unity dot el for the file.

Ok, the wiki kind of choked on that. It appears to have created an uneditable page. I'll put it up on http://rtfm.etla.org/emacs/unity.el instead.

Copy unity.el to somewhere suitable, say ~/lib/emacs/unity.el and then add the following to your ~/.emacs:

(load-library "~/lib/emacs/unity.el")

Alternatively, if ~/lib/emacs is already in your load path:

(load-library "unity.el")

or

(require 'unity)

unity.el uses the emacs url libraries to fetch and save unity pages.

At the time of writing, you could get these in the following ways:


Keybindings

C-c C-f

C-c C-c or C-x C-s

C-c t r

C-c t c

C-c t k

C-c t TAB

C-c t ?

C-c d i

C-c d =

<


Syntax-Highlighting

unity.el understands the bold and italic markup. It also groks wiki words and square bracketed links, [ [ macros ] ], table markup and comments. And anchors. And links to anchors. And horizontal dividers.


Planned-commands

Um. I finished all the commands I planned. Suggestions welcome.


!!!Planned-features

Also done.

Notes

The syntax highlighting is not perfect, (I don't think it copes with comments wrapped around table rows) but I don't have a canonical syntax for the wiki, so I guess it's fine as it is.

Version 0.17 uploads text as utf-8, so pretty much all characters should be covered. (There are some limitations with composed character sets but this seems to be a browser/ui limitation rather than anything to do with unity.el or emacs per se.

UTF-8

what is it?

Þ

Thorn

æ

ae ligature

Æ

AE ligature

hiragana ka syllable

ø

my sister was bitten by a møøse once

Œ

OE ligature

kanji aku

विवेक

somewhat unlikely to render, indic support is weak

שנבג

some hebrew

¥¤€£

yen, currency, euro, pound

®©

registered, copyright

UnityWiki: UnityDotEl (last edited 2008-01-20 00:02:47 by tack)