Skip to main content
deleted 110 characters in body
Source Link
Forge
  • 285
  • 3
  • 15

I was configuring some capture templates for org mode but when adding any new template to init file, the default TASK template disappeared. I've tried to add my own but the format seems not to work. Here my code trying to add the default task and one for notes:

 (setq org-capture-templates
      '(("t" "Todo" entry (file+headline "~/org/refile.org" "Tasks")
             "* TODO %t %?\n ")
        ("n" "Note" entry (file+headlin "~/org/notes.org")
             "* %?\nEntered on %U\n  %i\n  %a")))

The issue is that when adding any other template, option default for tasks disappeared, but if I add a default task template, datesome of addition and such ( %t %?\n) is not working so I think maybe I can copy the original defaultexpansions for template I like a lot, such as link to my init file or date of addition I've managed to emulate but no success so far.

where is default template code located?

I was configuring some capture templates for org mode but when adding any new template to init file, the default TASK template disappeared. I've tried to add my own but the format seems not to work. Here my code trying to add the default task and one for notes:

 (setq org-capture-templates
      '(("t" "Todo" entry (file+headline "~/org/refile.org" "Tasks")
             "* TODO %t %?\n ")
        ("n" "Note" entry (file+headlin "~/org/notes.org")
             "* %?\nEntered on %U\n  %i\n  %a")))

The issue is that when adding any other template, option default for tasks disappeared, but if I add a default task template, date of addition and such ( %t %?\n) is not working so I think maybe I can copy the original default template to my init file.

where is default template code located?

I was configuring some capture templates for org mode but when adding any new template to init file, the default TASK template disappeared.

 (setq org-capture-templates
      '(("t" "Todo" entry (file+headline "~/org/refile.org" "Tasks")
             "* TODO %t %?\n ")
        ("n" "Note" entry (file+headlin "~/org/notes.org")
             "* %?\nEntered on %U\n  %i\n  %a")))

The issue is that when adding any other template, option default for tasks disappeared, but if I add a default task template, some of the expansions for template I like a lot, such as link to file or date of addition I've managed to emulate but no success so far.

where is default template code located?

Source Link
Forge
  • 285
  • 3
  • 15

where is default org mode capture template for tasks located

I was configuring some capture templates for org mode but when adding any new template to init file, the default TASK template disappeared. I've tried to add my own but the format seems not to work. Here my code trying to add the default task and one for notes:

 (setq org-capture-templates
      '(("t" "Todo" entry (file+headline "~/org/refile.org" "Tasks")
             "* TODO %t %?\n ")
        ("n" "Note" entry (file+headlin "~/org/notes.org")
             "* %?\nEntered on %U\n  %i\n  %a")))

The issue is that when adding any other template, option default for tasks disappeared, but if I add a default task template, date of addition and such ( %t %?\n) is not working so I think maybe I can copy the original default template to my init file.

where is default template code located?