From mboxrd@z Thu Jan 1 00:00:00 1970 From: D M German Subject: Re: a window with my agenda at all times Date: Mon, 27 Jun 2011 14:47:19 -0400 Message-ID: <867h87jemg.fsf@mn.cs.uvic.ca> References: <86mxh4oah3.fsf@mn.cs.uvic.ca> <87ei2f89oj.fsf@ucl.ac.uk> Reply-To: dmg@uvic.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbGqH-0000FJ-7W for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:47:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbGqE-0007fo-QT for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:47:28 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:47467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbGqE-0007fg-Fl for emacs-orgmode@gnu.org; Mon, 27 Jun 2011 14:47:26 -0400 Received: by gxk23 with SMTP id 23so2682864gxk.0 for ; Mon, 27 Jun 2011 11:47:25 -0700 (PDT) In-Reply-To: <87ei2f89oj.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Mon, 27 Jun 2011 18:29:32 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Erick, Eric> D M German writes: >> Hi everybody, >> >> I struggle to keep (in emacs) a window with the agenda at all times. If >> anybody has any pointers on how to get a window or a frame to "stick" at >> all times with the contents of a frame, and basically be ignored from >> any window-related command (split, kill, etc), I would be grateful. >> >> For a long time I have wanted a sticky window that keeps this >> information. Like a sticky note on my desktop (think a widget in >> Android). Eric> I can't answer your question directly but I have done this in the past Eric> by using /conky/ to display the contents of a file (updating Eric> automatically) where the file is created by Emacs to consist of the Eric> output of the agenda command. This elisp snippet writes out the agenda Eric> to a specified file (untested): (save-window-excursion (org-batch-agenda "a") (org-write-agenda "some-file-name")) I do something similar, but in the "after-save-hook" (defun dmg-org-update-agenda-file (&optional force) (interactive) (save-excursion (save-window-excursion (let ((file "/tmp/agenda.html")) (org-agenda-list) (org-write-agenda file))))) Eric> In conky, you can use the /head/ directive to output a specified number Eric> of lines. Eric> Conky can write to the root window (i.e. the screen) or to a window. Eric> The former works better, in my opinion, but this may depend on the Eric> window manager you use. Thanks for the hint. Sometimes the problem is knowing the name of a tool. I though about doing something like this, but I wanted rendering in HTML. Searching on the Internet I found an alternative that does HTML (gtk-desktop-info). https://code.launchpad.net/~m-buck/+junk/gtk-desktop-info I think at the end it is a matter of taste. With my utility a window is created with scrollbars if the agenda is too large. But it seems to be making a difference to me, which is what matters ;) --dmg Eric> HTH, Eric> eric Eric> -- Eric> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 Eric> : using Org-mode version 7.5 (release_7.5.461.g6d18) -- -- Daniel M. German http://turingmachine.org/ http://silvernegative.com/ dmg (at) uvic (dot) ca replace (at) with @ and (dot) with .