emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <ucecesf@ucl.ac.uk>
To: Emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: Re: orgmode git: Org agenda todo list headers broken
Date: Fri, 02 Oct 2009 11:52:46 +0100	[thread overview]
Message-ID: <87ocoqqd8h.wl%ucecesf@ucl.ac.uk> (raw)
In-Reply-To: <20091002100807.GA2091@taupan.ath.cx>

At Fri, 2 Oct 2009 12:08:07 +0200,
Friedrich Delgado Friedrichs wrote:

> The problem was that I wanted to add appointments for the day
> automatically, so I added
> 
> (add-hook 'org-agenda-mode-hook 'org-agenda-to-appt)
> 
> to my org config very recently.
> 
> Probably that was the wrong way to do this. I think I found this on
> the mailing list.

I use:

--8<---------------cut here---------------start------------->8---
(when window-system

  (setq appt-display-format 'window)
  
  ;; ... (other stuff deleted)

  ;; Run once, activate and schedule refresh
  (run-at-time nil 3600 'org-agenda-to-appt)
  (appt-activate t))

(setq appt-time-msg-list nil)
(org-agenda-to-appt)

(defadvice  org-agenda-redo (after org-agenda-redo-add-appts)
  "Pressing `r' on the agenda will also add appointments."
  (progn 
    (setq appt-time-msg-list nil)
    (org-agenda-to-appt)))

(ad-activate 'org-agenda-redo)
--8<---------------cut here---------------end--------------->8---

in my .emacs (or equivalent).  The appointment list is set initially
when starting emacs, automatically updated every hour and also
whenever you update the agenda (r).  Works perfectly for me.

HTH!

eric

  reply	other threads:[~2009-10-02 10:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-02  8:44 orgmode git: Org agenda todo list headers broken Friedrich Delgado Friedrichs
2009-10-02  8:52 ` Carsten Dominik
2009-10-02  9:04   ` Friedrich Delgado Friedrichs
2009-10-02  9:13   ` Ian Barton
     [not found] ` <0F9000D3-6E0B-4324-A2E4-C212796A033B@gmail.com>
2009-10-02 10:08   ` Friedrich Delgado Friedrichs
2009-10-02 10:52     ` Eric S Fraga [this message]
2009-10-02 13:32       ` Friedrich Delgado Friedrichs

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=87ocoqqd8h.wl%ucecesf@ucl.ac.uk \
    --to=ucecesf@ucl.ac.uk \
    --cc=e.fraga@ucl.ac.uk \
    --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).