emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* refresh from google calendar before showing agenda
@ 2017-06-21 13:33 Gyro Funch
  0 siblings, 0 replies; 3+ messages in thread
From: Gyro Funch @ 2017-06-21 13:33 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I set up org-gcal to download my google calendar to an org file and
would like to do an automatic org-gcal-fetch before displaying an
org agenda view.

Unfortunately, I am a newbie with elisp, so am not sure of the best
way to accomplish this?

I would appreciate any help or suggestions on code I can use to make
this happen.

Thank you.

-gyro

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: refresh from google calendar before showing agenda
       [not found] <922a70adca974de398999e3d6f19f3c5@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-06-21 13:54 ` Eric S Fraga
  2017-06-21 14:38   ` Gyro Funch
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2017-06-21 13:54 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 344 bytes --]

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.

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.8-582-g15c9e9

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: refresh from google calendar before showing agenda
  2017-06-21 13:54 ` refresh from google calendar before showing agenda Eric S Fraga
@ 2017-06-21 14:38   ` Gyro Funch
  0 siblings, 0 replies; 3+ messages in thread
From: Gyro Funch @ 2017-06-21 14:38 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-21 14:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <922a70adca974de398999e3d6f19f3c5@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-06-21 13:54 ` refresh from google calendar before showing agenda Eric S Fraga
2017-06-21 14:38   ` Gyro Funch
2017-06-21 13:33 Gyro Funch

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).