kidd / org-gcal.el

Org sync with Google Calendar. (active maintained project as of 2019-11-06)
434 stars 47 forks source link

org-gcal-sync does not respect customized org-gcal-dir directory #102

Open Trevoke opened 4 years ago

Trevoke commented 4 years ago

Hi!

When I use org-gcal-sync it's always going to try and use ~/.emacs.d/org-gcal/ first, which is frustrating because I don't want it to.

My configuration is as follows:

  (use-package org-gcal
    :pin "melpa"
    :after (org-agenda persist)
    :config
    (setq org-gcal-dir "~/.emacs.d/local-files/org-gcal/"))

And this properly sets the different directory at launch, but when I call org-gcal-sync it still looks for and saves a token in ~/.emacs.d/org-gcal/ instead.

telotortium commented 4 years ago

Hi, you should probably use :init instead of :config here so the variable is set before the package is loaded.

Trevoke commented 4 years ago

Welp, I could have sworn that didn't work, but it just did, so, uh, thanks, I suppose.

It might be worth adding this to the README.