I want to have a `file+datetree` for Org-mode's Capture, so I set like this:
(setq org-capture-templates
'((D Diary + Timer entry
(file+datetree (concat org-directory /diary/diary.org))
* %^{Description: } %^g \n %i %?\n :clock-in t :clock-keep t)
(d Diary entry
(file+datetree (concat org-directory /diary/diary.org))
* %? %U)
))
And use these captures to add items for `diary.org` several times. I expect the
file has:
* 2014
** 2014-11 11 月
*** 2014-11-21 金曜日
test1 [2014-11-21 金 03:08]
test2 [2014-11-21 金 03:08]
test3 [2014-11-21 金 03:08]
But what I get is like this:
* 2014
** 2014-11 11 月
*** 2014-11-21 金曜日
test1 [2014-11-21 金 03:08]
** 2014-11 11 月
*** 2014-11-21 金曜日
test2 [2014-11-21 金 03:09]
** 2014-11 11 月
*** 2014-11-21 金曜日
test3 [2014-11-21 金 03:09]
How to solve this problem...? (I've ever used Org's Capture one year
ago, and at that time it worked just liked I wish; I have no idea why it
becomes this.)
I just asked this problem on StackExchange:
http://emacs.stackexchange.com/questions/3757/orgs-capture-annoying-duplicated-date-tree-outlines
And it seems a bug of Org-mode itself.
Emacs : GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9)
of 2014-10-23 on kuanyui-laptop.site
Package: Org-mode version 8.2.10 (release_8.2.10 @
/usr/local/share/emacs/24.4/lisp/org/)
current state:
==
(setq
org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
outline-minor-mode-hook '(wikipedia-outline-magic-keys)
org-latex-classes '((article
\n\\documentclass[12pt,a4paper]{article}\n\\usepackage[margin=2cm]{geometry}\n\\usepackage{fontspec}\n\\setromanfont{cwTeXMing}\n\n\\usepackage{etoolbox}
%
Quote部份的字型設定\n\\newfontfamily\\quotefont{cwTeXFangSong}\n\\AtBeginEnvironment{quote}{\\quotefont\\small}\n\n\\setmonofont[Scale=0.9]{Courier}
% 等寬字型 [FIXME] Courier 中文會爛掉!\n\\font\\cwSong=''cwTeXFangSong'' at
10pt\n%\\font\\cwHei=''cwTeXHeiBold'' at 10p
%不知為何會爆掉\n\\font\\cwYen=''cwTeXYen'' at 10pt\n\\font\\cwKai=''cwTeXKai'' at
10pt\n\\font\\cwMing=''cwTeXMing'' at 10pt\n\\font\\wqyHei=''文泉驛正黑'' at
10pt\n\\font\\wqyHeiMono=''文泉驛等寬正黑'' at 10pt\n\\font\\wqyHeiMicro=''文泉驛微米黑'' at
10pt\n\\XeTeXlinebreaklocale ``zh''\n\\XeTeXlinebreakskip = 0pt plus
1pt\n\\linespread{1.36}\n\n\\usepackage{multicol}\n\n% [FIXME] ox-latex
的設計不良導致hypersetup必須在這裡插入\n\\usepackage{hyperref}\n\\hypersetup{\n
colorlinks=true, %把紅框框移掉改用字體顏色不同來顯示連結\n linkcolor=[rgb]{0,0.37,0.53},\n
citecolor=[rgb]{0,0.47,0.68},\n filecolor=[rgb]{0,0.37,0.53},\n
urlcolor=[rgb]{0,0.37,0.53},\n pagebackref=true,\n linktoc=all,}\n
(\\section{%s} . \\section*{%s})
(\\subsection{%s} . \\subsection*{%s})
(\\subsubsection{%s} . \\subsubsection*{%s})
(\\paragraph{%s} . \\paragraph*{%s})
(\\subparagraph{%s} . \\subparagraph*{%s}))
(beamer
\n\\documentclass[presentation]{beamer}\n\\usepackage{fontspec}\n\\setromanfont{wqyHeiMicro}\n\n\\setmonofont[Scale=0.9]{Courier}
% 等寬字型 [FIXME] Courier 中文會爛掉!\n\\font\\cwSong=''cwTeXFangSong'' at
10pt\n%\\font\\cwHei=''cwTeXHeiBold'' at 10p
%不知為何會爆掉\n\\font\\cwYen=''cwTeXYen'' at 10pt\n\\font\\cwKai=''cwTeXKai'' at
10pt\n\\font\\cwMing=''cwTeXMing'' at 10pt\n\\font\\wqyHei=''文泉驛正黑'' at
10pt\n\\font\\wqyHeiMono=''文泉驛等寬正黑'' at 10pt\n\\font\\wqyHeiMicro=''文泉驛微米黑'' at
10pt\n\\XeTeXlinebreaklocale ``zh''\n\\XeTeXlinebreakskip = 0pt plus
1pt\n\\linespread{1.36}\n\n
(\\section{%s} . \\section*{%s})
(\\subsection{%s} . \\subsection*{%s})
(\\subsubsection{%s} . \\subsubsection*{%s})
(\\paragraph{%s} . \\paragraph*{%s})
(\\subparagraph{%s} . \\subparagraph*{%s}))
)
org-latex-default-packages-alist '(( hyperref nil) (AUTO inputenc t)
( fixltx2e nil) ( graphicx t)
( longtable nil) ( float nil) (
wrapfig nil)
( rotating nil) (normalem ulem t)
( amsmath t) ( textcomp t) (
marvosym t)
( wasysym t) ( amssymb t)
\\tolerance=1000)
org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-html-format-drawer-function '(lambda (name contents) contents)
org-log-done 'time
org-latex-format-inlinetask-function 'ignore
org-confirm-shell-link-function 'yes-or-no-p
org-image-actual-width