emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: [Babel] Macro for begin_src?


From: Eric S Fraga
Subject: Re: [Orgmode] Re: [Babel] Macro for begin_src?
Date: Sat, 17 Apr 2010 11:12:32 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

On Fri, 16 Apr 2010 21:23:35 -0500, Erik Iverson <address@hidden> wrote:
> > http://doc.norang.ca/org-mode.html#Yasnippets
> >
> > If anyone else has a different macro set up, I'm still interested in
> > hearing your solutions.
> >
> 
> Nope, yasnippet is the way to go I think!

+1

it might be nice to have a worg page on snippets for org-mode?  I'm
happy to contribute a few.  The ones I use the most are these two:

block:
--8<---------------cut here---------------start------------->8---
#name : #+begin_...#+end_
# --
#+begin_$1 $2
$0
#+end_$1
--8<---------------cut here---------------end--------------->8---

and

figure:
--8<---------------cut here---------------start------------->8---
#name : figure
# --
#+attr_latex: width=$1\textwidth
[[file:$2.pdf]]
$0
--8<---------------cut here---------------end--------------->8---





reply via email to

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