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

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

Re: [emacs-wiki-discuss] Re: an odd proposal....


From: Alan Schussman
Subject: Re: [emacs-wiki-discuss] Re: an odd proposal....
Date: Wed, 22 Dec 2004 14:40:58 -0700
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)

Jody Klymak wrote:
Hi Alan,

Alan Schussman <address@hidden> writes:


(defconst planner-insert-current-projects-page "CurrentProjects");
(defconst planner-insert-current-projects-title "*
<lisp>(buffer-name)</lisp>");


I guess I don't quite get this.  I have:

(defconst planner-insert-current-projects-title "* Current Projects");
and
(setq planner-day-page-template "* Current Projects\n\n\n* Tasks\n\n\n* 
Diary\n\n\nWelcomePage\n\n\n* Notes\n\n\n")

The code then looks for "* Current Projects" in the daily file and
replaces the section (until the next "* Foo bar") with whatever is in
the CurrentProjects wikipage.

Sorry, I knew I wasn't explaining something adequately, but I had forgotten what it was. I do

(setq planner-day-page-template "* <lisp>(buffer-name)</lisp>\n\n* Tasks\n\n\n* Schedule\n\n\n* Notes\n\n\n")

so that the plan page title is at the top of each page. Your code then finds "* <lisp>(buffer-name)</lisp>" at the top of the page and inserts the CurrentProjects wiki page below it. I guess I treat the page title as the section to replace, and I did this because I sort of liked a trimmer CurrentProjects section. So I get, for instance

| * 2004.12.22
| ** Current: DissSurvey | TeachPrep
|
| * Tasks

Instead of

| * Current Projects
| DissSurvey | TeachPrep
|
| * Tasks

Best-
-Alan




reply via email to

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