Hello, new to emacs and elisp. 

Full context can be seen here: 
https://www.reddit.com/r/emacs/comments/1ju3pk8/comment/mm0o5la/

I'm trying to use org-capture templates (file+datetree+prompt) to enter the 
time I spend on things at work. I want to have the date and begin and end times 
in the note added without re-selecting the date.

The suggestion was to use %T, but I noticed the end time was cut off. The other 
user in the thread sent this: 
I dug into org-capture-fill-template, and discovered that the code handling the 
%T placeholder uses a (let* ((org-end-time-was-given nil))) to suppress the 
end-time.

I was curious if this was something that could be changed, or if we could get a 
different placeholder that could have end times?

I managed to work around this with the code below, it works, but doesn't do as 
much to verify the time.
  (setopt org-capture-templates
          (append org-capture-templates
                  '(("s" "Schedule entry" entry
                     (file+datetree+prompt "~/org/schedule.org")
                     "* %^{Timecode}\nDescr: %^{Description}\nSCHEDULED: 
<%<%Y-%m-%d %a %^{Time}>> \n:PROPERTIES:\n:TIMECODE: %\\1\n:END:")))))

Enjoying my dive into emacs/org mode. Seeming like I'll be sticking around.

P.S. I'm in digest mode so I'm a bit unsure how replies will work.


Reply via email to