[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] a window with my agenda at all times
From: |
D M German |
Subject: |
Re: [O] a window with my agenda at all times |
Date: |
Mon, 27 Jun 2011 14:47:19 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Hi Erick,
Eric> D M German <address@hidden> 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 .