[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-wiki-discuss] Different Planner projects
From: |
Volker Dormeyer |
Subject: |
Re: [emacs-wiki-discuss] Different Planner projects |
Date: |
Wed, 31 Dec 2003 20:11:11 +0100 |
User-agent: |
Mutt/1.5.4i |
Hi Brent,
I used (planner-option-customized) before, but did not realise to
solve it in a way you did. -- Thank you!
I modified it a bit and bound it to a key:
;; Switch between different planner projects
(defun planner-switch-project (project)
"Switches planner and publishing directories for PROJECT)"
(interactive "sPlanner Project: ")
(planner-option-customized 'planner-directory
(concat "~/priv/Wiki/Planner/" project))
(planner-option-customized 'planner-publishing-directory
(concat "~/priv/WebWiki/Planner/" project))
(message "Planner project ==> %s" project)
)
;; Default planner project to switch to
(planner-switch-project "Main")
;; Key binding
(global-set-key "\C-cp" 'planner-switch-project)
Maybe it is useful for others, too.
Happy new year!
Volker
From: Brent Goodrick <address@hidden>
Date: Tue, Dec 30, 2003 at 04:56:56PM -0800
Subject: [emacs-wiki-discuss] Different Planner projects
>
> Hi Volker,
>
> Your question is not stupid. That is the one of the first things I
> wanted to do with the planner mode, because I have the need to
> separate my planner directory that I have for my notes at work from
> those I keep on my home machine. I used the planner-option-customized
> function defined in planner.el somewhat like this:
>
> (planner-option-customized 'planner-directory "~/Plans/Home" )
> (planner-option-customized 'planner-publishing-directory
> "~/public_html/Plans/Home")
>
> I arrange for it to be executed differently when I'm at work:
>
> (planner-option-customized 'planner-directory "~/Plans/Work" )
> (planner-option-customized 'planner-publishing-directory
> "~/public_html/Plans/Work")
>
> Now, in your case, you could have multiple sets of directories, but to
> switch between them you would make similar calls to
> planner-option-customized above. Perhaps you could have separate
> functions for each, keyed by name (I've not executed this, its just an
> example):
>
> (defun bg-planner-switch-project (project-name)
> "Switches planner and publishing directories for PROJECT-NAME."
> (interactive "sProject Name: ")
> (planner-option-customized 'planner-directory (concat "~/Plans/"
> project-name))
> (planner-option-customized 'planner-publishing-directory (concat
> "~/public_html/Plans/" project-name))
> )
>
> Brent
>
>
> >>>>> "Volker" == Volker Dormeyer <address@hidden> writes:
>
> Volker> Hello,
> Volker> Maybe, the question is stupid, but I'm new to planner.el.
>
> Volker> Is it possible to have different Planner projects in a way like the
> Volker> emacs-wiki projects with different Wiki- and publishing-directories?
>
> Volker> It could be useful for me, to use one planner location for real
> planning
> Volker> and another one for testing, blogging, etc.
>
> Volker> Thanks,
> Volker> Volker
>
>
> Volker> _______________________________________________
> Volker> emacs-wiki-discuss mailing list
> Volker> address@hidden
> Volker> http://mail.nongnu.org/mailman/listinfo/emacs-wiki-discuss