[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: [Babel] Macro for begin_src?
From: |
Dan Davison |
Subject: |
Re: [Orgmode] Re: [Babel] Macro for begin_src? |
Date: |
Fri, 16 Apr 2010 22:35:22 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Nathan Neff <address@hidden> writes:
> On Fri, Apr 16, 2010 at 8:18 PM, Nathan Neff <address@hidden> wrote:
>
> I've been converting my init.el file to org-babel, and am getting tired of
> copying/pasting or typing the begin_src and end_src blocks.
>
> Example:
> #+begin_src emacs-lisp :results silent
> #+end_src
Hi Nate,
By the way, if you are using :results silent for all your blocks, then
you can just enter it once as a buffer property:
#+property: results silent
(and if you want it for a whole subtree but not a whole buffer, then set
a property called :results: with value silent in the root of the
subtree).
I agree with the others about using yasnippets for blocks. I have src
and elisp snippets (although to be honest I still haven't learned the
syntax for defining them and I have trouble stopping them leaving
annoying trailing spaces...ok thanks you made me fix that, although I
still don't know the syntax, something like this then
src:
#+begin_src...#+end_src
# --
#+begin_src ${2:language}
$0
#+end_src
elisp:
#name : #+begin_src...#+end_src
# --
#+begin_src emacs-lisp
$0
#+end_src
)
Dan
>
>
>
> *Sigh* I Googled around for about 15 minutes, then posted the question to the
> mailing list. (I swear!)
>
> Then, I stumbled upon Brent's Yasnippets when researching something totally
> different.
>
> 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.
>
> Thanks,
> --Nate
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, (continued)
- [Orgmode] Re: [Babel] Macro for begin_src?, Matt Lundin, 2010/04/17
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Thomas S. Dye, 2010/04/17
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Eric S Fraga, 2010/04/18
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Dan Davison, 2010/04/18
- [Orgmode] Re: [Babel] Macro for begin_src?, Štěpán Němec, 2010/04/19
- [Orgmode] Re: [Babel] Macro for begin_src?, Eric S Fraga, 2010/04/18
Re: [Orgmode] Re: [Babel] Macro for begin_src?,
Dan Davison <=
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Nathan Neff, 2010/04/16
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Dan Davison, 2010/04/16
- [Orgmode] Re: [Babel] Macro for begin_src?, Štěpán Němec, 2010/04/17
- [Orgmode] Re: [Babel] Macro for begin_src?, Nathan Neff, 2010/04/17
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Erik Iverson, 2010/04/17
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Nathan Neff, 2010/04/17
- Re: [Orgmode] Re: [Babel] Macro for begin_src?, Eric Schulte, 2010/04/17
Re: [Orgmode] [Babel] Macro for begin_src?, Thomas S. Dye, 2010/04/16
[Orgmode] Re: [Babel] Macro for begin_src?, Bernt Hansen, 2010/04/16