emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Is <s TAB supposed to expand into upper case #+BEGIN_SRC?


From: Thorsten Jolitz
Subject: Re: [O] Is <s TAB supposed to expand into upper case #+BEGIN_SRC?
Date: Sat, 07 Jun 2014 22:39:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Grant Rettke <address@hidden> writes:


> #+BEGIN_SRC
>
> #+END_SRC
>
> Is supposed to expand into upper case letters?

or put this in your init.el:

#+BEGIN_SRC emacs-lisp
(setq org-structure-template-alist
      (quote (("s" "#+begin_src ?\n\n#+end_src"
               "<src lang=\"?\">\n\n</src>")
              ("e" "#+begin_example\n?\n#+end_example"
               "<example>\n?\n</example>")
              ("q" "#+begin_quote\n?\n#+end_quote"
               "<quote>\n?\n</quote>")
              ("v" "#+begin_verse\n?\n#+end_verse"
               "<verse>\n?\n/verse>")
              ("c" "#+begin_center\n?\n#+end_center"
               "<center>\n?\n/center>")
              ("l" "#+begin_latex\n?\n#+end_latex"
               "<literal style=\"latex\">\n?\n</literal>")
              ("L" "#+latex:"
               "<literal style=\"latex\">?</literal>")
              ("h" "#+begin_html\n?\n#+end_html"
               "<literal style=\"html\">\n?\n</literal>")
              ("H" "#+html:"
               "<literal style=\"html\">?</literal>")
              ("a" "#+begin_ascii\n?\n#+end_ascii")
              ("A" "#+ascii:")
              ("i" "#+index:?" "#+index: ?")
              ("I" "#+include%file ?"
               "<include file=%file markup=\"?\">"))))
#+END_SRC


-- 
cheers,
Thorsten




reply via email to

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