From mboxrd@z Thu Jan 1 00:00:00 1970 From: chris Subject: Re: Re: Idea: Agenda Search publish? Date: Wed, 11 Apr 2007 10:09:50 +0100 Message-ID: <9bcdfad70704110209k1ba062d8l85c694ebd160492e@mail.gmail.com> References: <3d6808890704020706x5305adf3t4715f80a64bbc57a@mail.gmail.com> <87ejmzqinq.fsf@bzg.ath.cx> <7964a4b88c911e723b4fe697fc60590c@science.uva.nl> <64bfe3d50704051125r67d53303y5c5ac9a695799265@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1911388502==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HbYtv-0008Ga-HT for emacs-orgmode@gnu.org; Wed, 11 Apr 2007 05:14:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HbYtu-0008EU-70 for emacs-orgmode@gnu.org; Wed, 11 Apr 2007 05:14:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbYtu-0008ED-3S for emacs-orgmode@gnu.org; Wed, 11 Apr 2007 05:14:02 -0400 Received: from an-out-0708.google.com ([209.85.132.249]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HbYpr-0004iG-HN for emacs-orgmode@gnu.org; Wed, 11 Apr 2007 05:09:51 -0400 Received: by an-out-0708.google.com with SMTP id b8so118500ana for ; Wed, 11 Apr 2007 02:09:50 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --===============1911388502== Content-Type: multipart/alternative; boundary="----=_Part_5538_16650071.1176282590777" ------=_Part_5538_16650071.1176282590777 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 05/04/07, Jason F. McBrayer wrote: > > "David O'Toole" writes: > > > I think this means being able to publish static HTML from the various > > views given by the agenda. So for example you could set up a timer to > > publish your agenda each day (assuming you run emacs for months like I > > do) and then if you are away from home, check your website to see the > > HTML agenda. > > Even taking the fancy publishing and timer stuff out of it, it would > be actually quite useful to be able just to export to html (or > whatever other target). For example, to produce printed context > lists for away-from-the-computer contexts. > > So, this is a function I use to htmlize the agenda buffer. Very basic, but works for me to be able to see my TODOs away from my desktop (defun cw-print-agenda () "htmlize org-mode's agenda" (interactive "P") (require 'htmlize) (let ((todo-buffer "*Org Agenda*")) (org-todo-list 0) (set-buffer (htmlize-buffer)) (write-file "~/public_html/Todo.html") (kill-this-buffer) (kill-buffer todo-buffer))) Then I have a cron job to copy that to an external web server. hth, C. ------=_Part_5538_16650071.1176282590777 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 05/04/07, Jason F. McBrayer <jmcbray@carcosa.net> wrote:
"David O'Toole" <dto@gnu.or= g> writes:

> I think this means being able to publish stat= ic HTML from the various
> views given by the agenda. So for example = you could set up a timer to
> publish your agenda each day (assuming you run emacs for months li= ke I
> do) and then if you are away from home, check your website to = see the
> HTML agenda.

Even taking the fancy publishing and ti= mer stuff out of it, it would
be actually quite useful to be able just to export to html (or
whate= ver other target).   For example, to produce printed context
l= ists for away-from-the-computer contexts.

So, thi= s is a function I use to htmlize the agenda buffer.  Very basic, but w= orks for me to be able to see my TODOs away from my desktop

(defun cw-print-agenda ()       =             &nb= sp;            =             &nb= sp;    
  "htmlize org-mode's agenda&= quot;           &nbs= p;            &= nbsp;           &nbs= p;    
  (interactive "P") &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;=20
  (require 'htmlize)       =             &nb= sp;            =             &nb= sp;            =             &nb= sp;      
  (let ((todo-buffer "= ;*Org Agenda*"))         =             &nb= sp;            =             &nb= sp;            =
    (org-todo-list 0)     &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;      =20
    (set-buffer (htmlize-buffer))    = ;            &n= bsp;            = ;            &n= bsp;            = ;         
  &nb= sp; (write-file "~/public_html/Todo.html")    = ;            &n= bsp;            = ;            &n= bsp;            = ;
    (kill-this-buffer)     &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;      =20
    (kill-buffer todo-buffer)))    &= nbsp;   

Then I have a cron job to copy that to an e= xternal web server.

hth, C.
------=_Part_5538_16650071.1176282590777-- --===============1911388502== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1911388502==--