-*- Mode: Text -*-

To use ljupdate, add something like the following to your .emacs
file:

(require 'ljupdate)

You'll probably want to frob the variable `lj-default-profile' and
abuse the function `lj-defprofile', which see. For example, I do
this:

(setq lj-default-profile (lj-defprofile 'livejournal "hober"))
(lj-defprofile 'deadjournal "hober")
(lj-defprofile 'livejournal "ljupdate")

If you want to post to multiple profiles simultaneously by
default, set `lj-default-profile' to a list of them, perhaps like
so:

(setq lj-default-profile
      (list (lj-defprofile 'livejournal "hober")
            (lj-defprofile 'deadjournal "hober")))

If you want to associate `lj-update-mode' with files with .lj
extensions, you can add something like this to your .emacs file:

(add-to-list 'auto-mode-alist '("\\.lj$" . lj-update-mode))

While you're running Emacs, if you want to change the profile that
ljupdate will use by default, you should use the command
`lj-profile-change'.

If you use LiveJournal systems other than LiveJournal and
DeadJournal, you should define them with `lj-defsystem', like so:

(lj-defsystem 'my-livejournal "www.my-livejournal.com")

If the system uses a port other than 80 (such as a goathack
account), `lj-defsystem' will optionally take a port argument
after the hostname, like so:

(lj-defsystem 'my-goathack "goathack.livejournal.org" 8042)

The main entry point is the command `lj-compose', which brings up
a `*LiveJournal*' buffer in which you can write a journal update.
This mode pretends to be something similar to the default
`compose-mail' setup, with good reason: You get update archiving
for free, in your preferred mail format (babyl, mbox, whatever).

If you want to post to a community, use the `X-LJ-Community'
header, with the community's name as its value, like so:

X-LJ-Community: ljupdate

The command `lj-post', bound to C-c C-s by default, will post the
update you're currently composing; `lj-post-and-exit', bound to
C-c C-c by default, will post the update and subsequently kill the
buffer.

If you use the BBDB, you can add "livejournal" fields to associate
LJ user names with people. Hitting `j' in the BBDB window will
pull up that person's LJ in your browser of choice by abuse of the
`browse-url' package. All you have to do is (require 'lj-bbdb)
somewhere and you're all set.

If you use Eshell, try typing "lj -h" at an eshell prompt to learn
how to use ljupdate from eshell.

If you want to use the checkfriends protocol to have Emacs tell
you when your friends page has been updated, you should be able to
use M-x lj-checkfriends-mode RET.

Also, check out the ljupdate community at LiveJournal:

    <URL:http://www.livejournal.com/community/ljupdate/>

I would like bug reports, feature requests, and anything else for
that matter! Even if you just want to complain about the ickier
parts of the code, that's cool.
