"Markus Hoenicka" <[EMAIL PROTECTED]> writes: > Markus Hoenicka writes: > > So how would I go about to run a custom function by one of the muse > > hooks *only* when publishing a planner project (in fact, any > > planner project, in case I have more than one), not when publishing > > some other unrelated muse project? My understanding of muse > > publishing is admittedly somewhat limited, but if this is doable, > > then there is no need for a planner publishing hook. > > Don't mean to nag, but is there a way to do this without a planner > publishing hook?
Yes. For your hook, do something like
(defun my-hook (project)
(let ((mode (muse-get-keyword :major-mode (cadr project) t)))
(when (eq mode 'planner-mode)
(do stuff))))
--
Michael Olson -- FSF Associate Member #652 |
http://mwolson.org/ -- Jabber: mwolson_at_hcoop.net | /` |\ | | |
Programmer -- Hobbies: Lisp, HCoop | |_] | \| |_|
Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
pgp1WqvALjHzo.pgp
Description: PGP signature
_______________________________________________ Planner-el-discuss mailing list [email protected] https://mail.gna.org/listinfo/planner-el-discuss
