I am using org-gcal and want to sync my Gmail Calender with Emacs. The from Google to Emacs way seems to work really nice.
In addition I am using calfw to view the appointments.

Is there an easy way to create a new appointment with predefined fields, like subject, time and so on, instead of manually create a todo in the gmail org file?

As proposed in the comments here is a sample appointment:

* Title
  :LINK: [[https://www.google.com/calendar/event?eid=123456789][Go to gcal web page]]
  :ID: ukf76ifl27j3shea562f5vrhe0

  <2016-08-01 Mo 09:10-10:10>

I hope this helps.

  • I could not find anything in the READMEs of calfw and org-gcal Aug 16, 2016 at 17:51
  • Please consider editing your post to include the exact format of an org-mode entry created by synchronizing a task/event from Google to Emacs. Once that is done, someone in this forum can propose a sample addition to org-capture-templates. This assumes that the library org-gcal has good support for a two-way/bi-directional sync.
    – lawlist
    Aug 16, 2016 at 18:18
  • I added it; also I am still new to org, how can I use templates to write to a specific org file? Aug 16, 2016 at 19:11

2 Answers 2


I found a proper solution:

I use the following template to write to my gmail.org. The neat thing is, as soon as I accept this template it automatically pushs it to Google.

* %^{Subject}


I also got into the org-capture thing. I add the following thing to my config:

  (setq org-capture-templates
          ("g" "Gmail")
          ("ge" "Event" entry (file "~/Todo/gmail.org") 
           (file "~/Todo/.org-templates/event")
           :empty-lines-before 1))))

And the above template is just in the file "~/Todo/.org-templates/event".

  • There is nothing wrong with a template, but it's such a tiny thing, you might want to just hard code it into your entry for org-capture-templates and forget about a separate file containing just 4 lines. But, if you really like having the existence of a separate file containing 4 lines, then more power to you.
    – lawlist
    Aug 18, 2016 at 17:25
  • 1
    I have actually many files for different kind of templates in a folder, so this is nice to share Aug 18, 2016 at 17:27

You can start from setting below:

;;cfw:org-capture-template should be evaluated before requiring calfw-org
(setq cfw:org-capture-template
      '("c" "calfw2org" entry 
        (file "/path/to/your/gmail.org")
        "*  %?\n %(cfw:org-capture-day)"))

(require 'calfw-org)

With this setting, you can create new appointment by pressing "c" on the calfw view.

cf. http://sheephead.homelinux.org/2014/03/15/7035/ (Japanese)

  • This does not work for me. org-capture-select-template: No capture template referred to by "c" keys Not sure what's wrong yet. Aug 18, 2016 at 14:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.