[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: debugging sbe calls
From: |
Dan Davison |
Subject: |
[Orgmode] Re: debugging sbe calls |
Date: |
Fri, 06 Aug 2010 05:53:33 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Sébastien Vauban <address@hidden>
writes:
> Hi Inquisitive Scientist,
>
> Inquisitive Scientist wrote:
>> I *love* org-babel.
>
> So do I. That's even not love anymore, but passion... Even if I almost don't
> use it, only when I need to write doc in a "literate programming" style. But,
> thinking at using it for every little script I write, as well.
>
>
>> Any suggestions on debugging would be much appreciated.
>>
>> Below is a list of some common mistakes.
>>
>> ** common mistakes
>>
>> *** forgetting colon on srcname
>
> This one is easy to fix. Use yasnippet. Type `sb <TAB>' and you're done.
>
> Definition of `sb':
>
> #name : #+begin_src...#+end_src
> # --
> #+srcname: ${1:name}
> #+begin_src ${2:language} $3
> $0
> #+end_src
>
> The only thing that still annoys me, is:
>
> - I type the name, then TAB
> - I type the language, then TAB
> - I have to delete the trailing space (yes, I'm paranoid), but I can't do it
> immediately. I first have to move cursor, then can come back to the extra
> space, and remove it...
Hi Seb,
I'm with you. That was annoying me too. I'm using this simpler one.
#+begin_src...#+end_src
# --
#+begin_src ${2:language}
$0
#+end_src
Dan
>
> Best regards,
> Seb