"Louis B. Moore" <[EMAIL PROTECTED]> 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
pgplNjCGa5UlG.pgp
Description: PGP signature
_______________________________________________ emacs-wiki-discuss mailing list emacs-wiki-discuss@nongnu.org http://lists.nongnu.org/mailman/listinfo/emacs-wiki-discuss