myuhe / org-gcal.el

Org sync with Google Calendar
452 stars 113 forks source link

Template for new Appointment #59

Closed der-daniel closed 6 years ago

der-daniel commented 8 years ago

Hello,

thanks for this great package, I really appreciate the effort. I am currently trying to get a template running, that includes some basic field like Subject and Date.

I am new to the template thing. On here I found an example, but I cannot transfer it to the way I want it.

     (setq org-capture-templates
      '(("t" "Todo" entry (file+headline "~/org/gtd.org" "Tasks")
             "* TODO %?\n  %i\n  %a")
        ("j" "Journal" entry (file+datetree "~/org/journal.org")
             "* %?\nEntered on %U\n  %i\n  %a")))

Can someone help?

Cheers Daniel

tshu-w commented 7 years ago

My simply template is, hope help:

  (setq org-capture-templates
       '(("t" "Todo" entry (file+headline org-agenda-file-gtd "Tasks")
            "* TODO %?\n  %i\n")
          ("a" "Appointment" entry (file org-agenda-file-gcal)
           "* %?\n  %^T\n\n")))