अपडेट करें:
ध्यान नहीं दिया गया कि ऑर्ग मोड 9.2 ने टेम्पलेट विस्तार के तंत्र को बदल दिया है, जहां org-structure-template-alistकेवल द्वारा परिभाषित ब्लॉकों के लिए है "#+BEGIN_"और "#+END_"। और जैसे प्रवेश ("p" ":PROPERTIES:?:END:")अब स्वीकार नहीं है।
जैसा कि उपरोक्त लिंक में उल्लेख किया गया है, अन्य "जटिल" टेम्पलेट को फ़ंक्शन द्वारा परिभाषित किया जा सकता है tempo-define-template, और ऑर्ग-टेम्पो को लोड किया जाना चाहिए ( (require 'org-tempo))। वास्तव में प्रविष्टियों org-structure-template-alist
को इसके org-tempo-tagsमाध्यम से रूपांतरित किया जाता tempo-define-templateहै org-tempo, और इसके लिए org-tempo-tagsचूक:
(("<i" . tempo-template-org-index)
("<A" . tempo-template-org-ascii)
("<H" . tempo-template-org-html)
("<L" . tempo-template-org-latex)
("<v" . tempo-template-org-verse)
("<s" . tempo-template-org-src)
("<q" . tempo-template-org-quote)
("<l" . tempo-template-org-export-latex)
("<h" . tempo-template-org-export-html)
("<E" . tempo-template-org-export)
("<e" . tempo-template-org-example)
("<C" . tempo-template-org-comment)
("<c" . tempo-template-org-center)
("<a" . tempo-template-org-export-ascii)
("<I" . tempo-template-org-include))
अपने मामले के लिए, आप एक टेम्पलेट को परिभाषित कर सकते हैं:
(tempo-define-template "my-property"
'(":PROPERTIES:" p ":END:" >)
"<p"
"Insert a property tempate")
नीचे उत्तर 9.2 से पहले केवल ऑर्ग मोड संस्करण के लिए काम करता है
हां, आप इसमें इस तरह से प्रविष्टि जोड़ सकते हैं:
(add-to-list 'org-structure-template-alist '("p" ":PROPERTIES:?:END:"))
फिर ओआरजी फ़ाइल में, आप टाइप करते हैं <pऔर TAB, यह संपत्ति में विस्तार करेगा और बिंदु की स्थिति पर छोड़ देगा ?।
और आप टाइप करके वेरिएबल के डॉक्यूमेंटेशन में अधिक जानकारी पा सकते हैं C-h v org-structure-template-alist RET।
>पर प्रतीक हैtempo-define-template? यदि नहीं .... तो परिभाषा में इसकी भूमिका क्या है?