From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Is References: <878up8sbc2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtkfP-0005mR-1g for emacs-orgmode@gnu.org; Sun, 08 Jun 2014 17:30:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtkfH-0000Y2-NY for emacs-orgmode@gnu.org; Sun, 08 Jun 2014 17:30:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:54638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtkfH-0000Xs-HM for emacs-orgmode@gnu.org; Sun, 08 Jun 2014 17:30:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WtkfD-0003kT-HB for emacs-orgmode@gnu.org; Sun, 08 Jun 2014 23:30:03 +0200 Received: from e178059198.adsl.alicedsl.de ([85.178.59.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Jun 2014 23:30:03 +0200 Received: from tjolitz by e178059198.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Jun 2014 23:30:03 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Grant Rettke writes: > Just added this to my init file to do that work: > > (mapc (lambda (asc) > (let ((org-sce-dc (downcase (nth 1 asc)))) > (setf (nth 1 asc) org-sce-dc))) > org-structure-template-alist) Thats of course much cooler than the pedestrian version. Only downside might be if you search your init file for #+begin_src or so one day because your forgot about org-structure-template-alist you won't find it ;) > Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi > gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ > “Wisdom begins in wonder.” --Socrates > ((λ (x) (x x)) (λ (x) (x x))) > “Life has become immeasurably better since I have been forced to stop > taking it seriously.” --Thompson > > > On Sat, Jun 7, 2014 at 4:44 PM, Grant Rettke wrote: >> Thank you Thorsten. >> Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi >> gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ >> “Wisdom begins in wonder.” --Socrates >> ((λ (x) (x x)) (λ (x) (x x))) >> “Life has become immeasurably better since I have been forced to stop >> taking it seriously.” --Thompson >> >> >> On Sat, Jun 7, 2014 at 3:39 PM, Thorsten Jolitz >> wrote: >>> Grant Rettke 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" >>> "\n\n") >>> ("e" "#+begin_example\n?\n#+end_example" >>> "\n?\n") >>> ("q" "#+begin_quote\n?\n#+end_quote" >>> "\n?\n") >>> ("v" "#+begin_verse\n?\n#+end_verse" >>> "\n?\n/verse>") >>> ("c" "#+begin_center\n?\n#+end_center" >>> "
\n?\n/center>") >>> ("l" "#+begin_latex\n?\n#+end_latex" >>> "\n?\n") >>> ("L" "#+latex:" >>> "?") >>> ("h" "#+begin_html\n?\n#+end_html" >>> "\n?\n") >>> ("H" "#+html:" >>> "?") >>> ("a" "#+begin_ascii\n?\n#+end_ascii") >>> ("A" "#+ascii:") >>> ("i" "#+index:?" "#+index: ?") >>> ("I" "#+include%file ?" >>> "")))) >>> #+END_SRC >>> >>> >>> -- >>> cheers, >>> Thorsten >>> >>> > > -- cheers, Thorsten