[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[emacs-wiki-discuss] Re: how do I get muse to publish html on file save?
From: |
Michael Olson |
Subject: |
[emacs-wiki-discuss] Re: how do I get muse to publish html on file save? |
Date: |
Thu, 16 Mar 2006 18:46:36 -0500 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
"Louis B. Moore" <address@hidden> writes:
> IF I try the code from:
>
> http://www.mwolson.org/static/doc/planner/Publishing.html#Publishing
>
> (eval-after-load "muse-mode"
> (add-hook 'after-save-hook
> #'(lambda ()
> (when (planner-derived-mode-p 'muse-mode)
> (muse-project-publish nil)))
> nil t))
>
> I get the following:
>
> Wrong number of arguments: (lambda nil (when (planner-derived-mode-p
> (quote muse-mode)) (muse-project-publish nil))), 1
>
> I'm not much of an elisp person, how do I debug this?
Oops, I think I might have used an incorrect code snippet. Try the
following instead. Let me know whether this works, so I can update
the manual.
(eval-after-load "muse-mode"
'(progn
(add-hook 'after-save-hook
#'(lambda ()
(when (planner-derived-mode-p 'muse-mode)
(muse-project-publish nil)))
nil t)))
--
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, IRC, EMMS, anime, manga, Debian
/` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
|_] | \| |_| Jabber: mwolson_at_hcoop.net
pgpLD3xRSl_ft.pgp
Description: PGP signature