Doom-emacs: [QUESTION] org-capture-templates

Created on 7 May 2019  路  2Comments  路  Source: hlissner/doom-emacs

(setq org-capture-templates
'(("d" "Dream" entry
(file+headline +org-capture-todo-file "Dream")
"* TODO %?\n :PROPERTIES:\n :CATEGORY: dream\n :END:\n %i\n"
:prepend t :kill-buffer t))

I add above in my ~/.doom.d/config.el. When I startup the emacs, the org-capture-templates is current.After press "SPC X", org-capture-templates become the default value. How can I change it

:lang org question resolved

Most helpful comment

Doom adds it's own templates. Your template is therefore overwritten when org is started.
The solution is to add your capture to the list of templates after org loads.
Put the following in your config.el:

(after! org
  (add-to-list 'org-capture-templates
             '(("d" "Dream" entry
               (file+headline +org-capture-todo-file "Dream")
               "* TODO %?\n :PROPERTIES:\n :CATEGORY: dream\n :END:\n %i\n"
               :prepend t :kill-buffer t))

All 2 comments

Doom adds it's own templates. Your template is therefore overwritten when org is started.
The solution is to add your capture to the list of templates after org loads.
Put the following in your config.el:

(after! org
  (add-to-list 'org-capture-templates
             '(("d" "Dream" entry
               (file+headline +org-capture-todo-file "Dream")
               "* TODO %?\n :PROPERTIES:\n :CATEGORY: dream\n :END:\n %i\n"
               :prepend t :kill-buffer t))

Doom adds it's own templates. Your template is therefore overwritten when org is started.
The solution is to add your capture to the list of templates after org loads.
Put the following in your config.el:

(after! org
  (add-to-list 'org-capture-templates
             '(("d" "Dream" entry
               (file+headline +org-capture-todo-file "Dream")
               "* TODO %?\n :PROPERTIES:\n :CATEGORY: dream\n :END:\n %i\n"
               :prepend t :kill-buffer t))

I got it. Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Vvkmnn picture Vvkmnn  路  3Comments

governorgoat picture governorgoat  路  3Comments

randomizedthinking picture randomizedthinking  路  3Comments

Ptival picture Ptival  路  3Comments

gueorgui picture gueorgui  路  3Comments