D M German <d...@uvic.ca> 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). 

I can't answer your question directly but I have done this in the past
by using /conky/ to display the contents of a file (updating
automatically) where the file is created by Emacs to consist of the
output of the agenda command.  This elisp snippet writes out the agenda
to a specified file (untested):

--8<---------------cut here---------------start------------->8---
    (save-window-excursion
      (org-batch-agenda "a")
      (org-write-agenda "some-file-name"))
--8<---------------cut here---------------end--------------->8---

In conky, you can use the /head/ directive to output a specified number
of lines.

Conky can write to the root window (i.e. the screen) or to a window.
The former works better, in my opinion, but this may depend on the
window manager you use.

HTH,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.461.g6d18)

Reply via email to