emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] Re: Schedule, Diary and Planner


From: Edgar Gonçalves
Subject: [emacs-wiki-discuss] Re: Schedule, Diary and Planner
Date: Tue, 07 Jun 2005 20:43:45 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50

This afternoon, Sacha Chua wrote:
> address@hidden (Edgar Gonçalves) writes:
>
>> The only thing I can see it's missing here is the ability to make the list
>> have a class="" attribute. But this is generic to emacs-wiki, not just 
>> planner
>> itself. I had to change tasks and notes generation to include these
>> attributes, but every normal emacs-wiki section/text/list/whatever doesn't
>> have a mean to provide such a customization level. Am I right?
>
> Hmm, yeah, I changed this by defining my own markup functions.
>
> One way to get around this would be to wrap the section in <div
> class="..."></div> and then use CSS selectors like .foo LI to do things. You 
> can
> modify the defadvice I gave you to insert the <div class="something"> and 
> </div>
> tags at the start and end of the buffer, or you can write a markup function to
> add to planner-publishing-markup that looks for the schedule sections and adds
> the div tags to them right before publishing. I wonder if that would work...

Yes, that's pretty much what I was able to do so far. I think this should be a
general purpose function (ie., (make-section-have-css-style section-name-string
style-class-string) )

What do you think? I have at least 4 usages in my site for such a call that
would replace 4 times a dozen lines, or so! :)
-- 
Edgar Gonçalves
Software Engineering Group @ INESC-ID
Portugal





reply via email to

[Prev in Thread] Current Thread [Next in Thread]