[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: |
Sun, 08 Jun 2014 23:29:13 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Grant Rettke <address@hidden> 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
> address@hidden | 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 <address@hidden> wrote:
>> Thank you Thorsten.
>> Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
>> address@hidden | 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 <address@hidden>
>> wrote:
>>> 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
>>>
>>>
>
>
--
cheers,
Thorsten
Re: [O] Is <s TAB supposed to expand into upper case #+BEGIN_SRC?, Nick Dokos, 2014/06/09