From: D M German <dmg@uvic.ca>
To: emacs-orgmode@gnu.org
Subject: Re: a window with my agenda at all times
Date: Mon, 27 Jun 2011 14:47:19 -0400 [thread overview]
Message-ID: <867h87jemg.fsf@mn.cs.uvic.ca> (raw)
In-Reply-To: <87ei2f89oj.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Mon, 27 Jun 2011 18:29:32 +0100")
Hi Erick,
Eric> D M German <dmg@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).
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 .
prev parent reply other threads:[~2011-06-27 18:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-26 15:53 a window with my agenda at all times D M German
2011-06-27 16:42 ` Bastien
2011-06-27 17:34 ` dmg
2011-06-27 17:29 ` Eric S Fraga
2011-06-27 18:38 ` dmg
2011-06-28 9:44 ` Bastien
2011-06-27 18:47 ` D M German [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=867h87jemg.fsf@mn.cs.uvic.ca \
--to=dmg@uvic.ca \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).