[Top][All Lists]

[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/ (x86_64-apple-darwin15.3.0)


Here it is from .customize.

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

    (("t" "todo" entry
      (file "~/.org/refile.org")
      "* TODO %^{Todo} 
%?" :clock-in t :clock-resume t)
     ("r" "respond" entry
      (file "~/.org/refile.org")
      "* NEXT Respond to %:from on %:subject
" :immediate-finish t :clock-in t :clock-resume t)
     ("n" "note" entry
      (file "~/.org/refile.org")
      "* %? :NOTE:
" :clock-in t :clock-resume t)
     ("j" "Journal" entry
      (file+datetree "~/.org/diary.org")
      "* %?
" :clock-in t :clock-resume t)
     ("w" "org-protocol" entry
      (file "~/.org/refile.org")
      "* TODO Review %c
" :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 %?
SCHEDULED: %(format-time-string \"<%Y-%m-%d %a .+1d/3d>\")
:STYLE: habit

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))

Bart Bunting

reply via email to

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