开发者

What's wrong with this org-mode template?

开发者 https://www.devze.com 2023-02-27 10:22 出处:网络
I can\'t get the prompt for entering tags to work. I\'ve put the code in my .emacs file along with%^g which should call the prompt but that isn\'t working.

I can't get the prompt for entering tags to work. I've put the code in my .emacs file along with %^g which should call the prompt but that isn't working.

This is in my .emacs file.

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

When I call the journal code I get no prompt and the output below

* %? 
Entered on [2011-04-20 We开发者_Go百科d 06:59]

Any ideas? Thanks.


I'm (almost) sorry to say that it works for me. Maybe you have an old version of Org Mode? I am running 7.5.

You can find the version by typing

M-x org-version

Additionally, you may want a space between the %? and the %^g for convenience. Good luck on making it work.

0

精彩评论

暂无评论...
验证码 换一张
取 消