From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gyro Funch Subject: Re: refresh from google calendar before showing agenda Date: Wed, 21 Jun 2017 08:38:16 -0600 Message-ID: References: <922a70adca974de398999e3d6f19f3c5@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87podxh2e4.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNgm4-0001GA-Rg for emacs-orgmode@gnu.org; Wed, 21 Jun 2017 10:38:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNgm1-0001DX-4R for emacs-orgmode@gnu.org; Wed, 21 Jun 2017 10:38:28 -0400 Received: from [195.159.176.226] (port=34315 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNgm0-0001D0-Ss for emacs-orgmode@gnu.org; Wed, 21 Jun 2017 10:38:25 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dNglt-0005L3-1K for emacs-orgmode@gnu.org; Wed, 21 Jun 2017 16:38:17 +0200 In-Reply-To: <87podxh2e4.fsf@pinto.chemeng.ucl.ac.uk> 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: emacs-orgmode@gnu.org On 6/21/2017 7:54 AM, Eric S Fraga wrote: > On Wednesday, 21 Jun 2017 at 13:33, Gyro Funch wrote: >> Unfortunately, I am a newbie with elisp, so am not sure of the best >> way to accomplish this? > > You could possibly *advice* the agenda dispatch command. See "Advising > Named Functions" in the Elisp info manual. > Thank you for the advice. It was very helpful. Though perhaps not optimal, the following seems to work: (advice-add 'org-agenda :before #'org-gcal-fetch) -gyro