(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
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 yourconfig.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
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: