emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] [PATCH] org.texi: Document quick insertion of empty structural


From: Jambunathan K
Subject: [Orgmode] [PATCH] org.texi: Document quick insertion of empty structural elements
Date: Sat, 14 Aug 2010 05:25:14 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (windows-nt)

org.texi: Document quick insertion of empty structural elements

Sources:

1. http://article.gmane.org/gmane.emacs.orgmode/6670/
   See section titled 'Completion of structure elements'

2. http://article.gmane.org/gmane.emacs.orgmode/18004/
   
>From 540d8f2c03d300b6007c0d8595bb78ad172d8eac Mon Sep 17 00:00:00 2001
From: Jambunathan K <address@hidden>
Date: Sat, 14 Aug 2010 04:24:34 +0530
Subject: [PATCH] org.texi: Document quick insertion of empty structural elements

* org.texi (Easy Templates): New section. Documents quick insertion of empty
structural elements.

TINYCHANGE
---
 doc/org.texi |   49 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 48 insertions(+), 1 deletions(-)

diff --git a/doc/org.texi b/doc/org.texi
index ac52c70..508d2ce 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -12320,6 +12320,7 @@ emacsclient \
 @chapter Miscellaneous
 
 @menu
+* Easy Templates::             Quick insertion of structural elements
 * Completion::                 M-TAB knows what you need
 * Speed keys::                 Electric commands at the beginning of a headline
 * Code evaluation security::   Org mode files evaluate inline code
@@ -12331,8 +12332,54 @@ emacsclient \
 * Interaction::                        Other Emacs packages
 @end menu
 
address@hidden Easy Templates, Completion, Miscellaneous, Miscellaneous
address@hidden Easy Templates
address@hidden insertion, of '#+begin_src #+end_src' 
address@hidden insertion, of '#+begin_example #+end_example' 
address@hidden insertion, of '#+begin_quote #+end_quote' 
address@hidden insertion, of '#+begin_verse #+end_verse' 
address@hidden insertion, of '#+begin_center #+end_center' 
address@hidden insertion, of '#+begin_latex #+end_latex' 
address@hidden insertion, of '#+latex:' 
address@hidden insertion, of '#+begin_html #+end_html'
address@hidden insertion, of '#+html:'  
address@hidden insertion, of '#+begin_ascii #+end_ascii' 
address@hidden insertion, of '#+ascii:' 
address@hidden insertion, of '#+include:' 
+
+Org-mode supports insertion of empty structural elements (like #+BEGIN_SRC
+and #+END_SRC pairs) with just a few key strokes. This is achieved through a
+native template expansion mechanism.
+
+To insert a structural element, type a '<', followed by a template selector
+and TAB. Completion takes effect only when the above keystrokes are typed on
+a line by itself.
+
+Following template selectors are currently supported.
+
address@hidden @columnfractions 0.1 0.9
address@hidden s @tab Insert '#+begin_src #+end_src'
address@hidden e @tab Insert '#+begin_example #+end_example'
address@hidden q @tab Insert '#+begin_quote #+end_quote' 
address@hidden v @tab Insert '#+begin_verse #+end_verse' 
address@hidden c @tab Insert '#+begin_center #+end_center' 
address@hidden l @tab Insert '#+begin_latex #+end_latex' 
address@hidden L @tab Insert '#+latex:' line 
address@hidden h @tab Insert '#+begin_html #+end_html' 
address@hidden H @tab Insert '#+html:' line
address@hidden a @tab Insert '#+begin_ascii #+end_ascii' 
address@hidden A @tab Insert '#+ascii:' line
address@hidden i @tab Insert '#+include:' line
address@hidden multitable
+
+For example, on an empty line, typing "<e" and then pressing TAB, will expand
+into a complete EXAMPLE template.
+
+You can install additional templates by customizing the variable
address@hidden Refer docstring of the variable for
+additional details.
 
address@hidden Completion, Speed keys, Miscellaneous, Miscellaneous
address@hidden Completion, Speed keys, Easy Templates, Miscellaneous
 @section Completion
 @cindex completion, of @TeX{} symbols
 @cindex completion, of TODO keywords
-- 
1.7.0.4

Jambunathan K.

reply via email to

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