emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Trouble with capture template and prompt


From: Bart Bunting
Subject: Re: [O] Trouble with capture template and prompt
Date: Wed, 14 Sep 2016 06:00:41 +1000
User-agent: Notmuch/0.21+63~gc689d1f (https://notmuchmail.org) Emacs/25.1.50.1 (x86_64-apple-darwin15.3.0)

Adam,

Here it is from .customize.

Several of the entries I do not use but thought I should include the
entire variable.

 '(org-capture-templates
   (quote
    (("t" "todo" entry
      (file "~/.org/refile.org")
      "* TODO %^{Todo} 
%u
%a
%?" :clock-in t :clock-resume t)
     ("r" "respond" entry
      (file "~/.org/refile.org")
      "* NEXT Respond to %:from on %:subject
SCHEDULED: %t
%U
%a
" :immediate-finish t :clock-in t :clock-resume t)
     ("n" "note" entry
      (file "~/.org/refile.org")
      "* %? :NOTE:
%U
%a
" :clock-in t :clock-resume t)
     ("j" "Journal" entry
      (file+datetree "~/.org/diary.org")
      "* %?
%U
" :clock-in t :clock-resume t)
     ("w" "org-protocol" entry
      (file "~/.org/refile.org")
      "* TODO Review %c
%U
" :immediate-finish t)
     ("m" "Meeting" entry
      (file "~/.org/refile.org")
      "* MEETING with %? :MEETING:
%U" :clock-in t :clock-resume t)
     ("p" "password" entry
      (file "~/filing/p/passwords.gpg")
      "* %^{Title}
   %^{USERNAME}p %^{PASSWORD}p")
     ("P" "Phone call" entry
      (file "~/.org/refile.org")
      "* PHONE %? :PHONE:
%U" :clock-in t :clock-resume t)
     ("h" "Habit" entry
      (file "~/.org/refile.org")
      "* NEXT %?
%U
%a
SCHEDULED: %(format-time-string \"<%Y-%m-%d %a .+1d/3d>\")
:PROPERTIES:
:STYLE: habit
:REPEAT_TO_STATE: NEXT
:END:
"))))


Kind regards
Adam Porter <address@hidden> writes:

> Bart Bunting <address@hidden> writes:
>
>> The error that is shown in the messages buffer is:
>>
>> Template key: 
>> Capture abort: (error Key sequence C-c ! starts with non-prefix key C-c) 
>
> I think this means that you have tried to specify the capture template
> key incorrectly.  It would be helpful if you could show us the elisp
> code that defines the template rather than the customize-option screen.
> :)  e.g.:
>
> #+BEGIN_SRC elisp
> '(("a" "Appointment" entry
>    (file+datetree+prompt
>     (concat org-directory "/calendar.org")
>     "Calendar")
>    "* %^{Description} %T %^G\n\n%U %?" :clock-in t :clock-resume t)
>   ("t" "Task" entry
>    (file "")
>    "* TODO %^{Description}    %^G\n\n%U %?" :clock-in t :clock-resume t))
> #+END_SRC
>
>
Bart
-- 

Bart Bunting



reply via email to

[Prev in Thread] Current Thread [Next in Thread]