From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: Substitute for (bh/org-agenda-to-appt) Date: Sat, 16 Jul 2016 12:35:57 +0100 Message-ID: <87lh11bysi.fsf@gmail.com> References: <57861F6C.8050207@dayspringpublisher.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bONt6-0004RR-Al for emacs-orgmode@gnu.org; Sat, 16 Jul 2016 07:36:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bONt2-0006sa-1U for emacs-orgmode@gnu.org; Sat, 16 Jul 2016 07:36:03 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:35774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bONt1-0006sT-QU for emacs-orgmode@gnu.org; Sat, 16 Jul 2016 07:35:59 -0400 Received: by mail-wm0-x244.google.com with SMTP id i5so5523618wmg.2 for ; Sat, 16 Jul 2016 04:35:59 -0700 (PDT) In-reply-to: <57861F6C.8050207@dayspringpublisher.com> 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" To: Louis Turk Cc: emacs-orgmode@gnu.org Hello Lou, Louis Turk writes: > With this fuction appointments are set up when Emacs starts: > > (bh/org-agenda-to-appt) Presumably you got this function from here: http://doc.norang.ca/org-mode.html > I would like to substitute it with a function that sets the appointments > up when org-mode starts instead of when emacs starts. The reason being > that (bh/org-agenda-to-appt) causes all the org-agenda-files to load, > which is very irritating when I'm editing none org-mode files (which is > probably 95% of the time). That webpage goes on to say: #+BEGIN_QUOTE ; Rebuild the reminders everytime the agenda is displayed (add-hook 'org-finalize-agenda-hook 'bh/org-agenda-to-appt 'append) ; This is at the end of my .emacs - so appointments are set up when Emacs starts (bh/org-agenda-to-appt) #+END_QUOTE So just comment out that line, like this: ;; (bh/org-agenda-to-appt) or delete it, and that function won't be called when your emacs starts, only when the agenda is displayed (assuming you set it up like that). Myles