From: Nathan Neff <nathan.neff@gmail.com>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: [Babel] Macro for begin_src?
Date: Fri, 16 Apr 2010 22:43:33 -0500 [thread overview]
Message-ID: <i2k211769421004162043o33fd6102s9679209b79a04a70@mail.gmail.com> (raw)
In-Reply-To: <87fx2ug61h.fsf@stats.ox.ac.uk>
[-- Attachment #1.1: Type: text/plain, Size: 1481 bytes --]
On Fri, Apr 16, 2010 at 9:35 PM, Dan Davison <davison@stats.ox.ac.uk> wrote:
> Nathan Neff <nathan.neff@gmail.com> writes:
>
> > On Fri, Apr 16, 2010 at 8:18 PM, Nathan Neff <nathan.neff@gmail.com>
> 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
>
>
>
Thanks! I'm having trouble triggering the yasnippets using the TAB key, so
I'm just using the GUI menu.
Do you literally type "src" (no quotes), then press Tab?
--Nate
[-- Attachment #1.2: Type: text/html, Size: 2088 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-04-17 3:43 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-17 1:18 [Babel] Macro for begin_src? Nathan Neff
2010-04-17 1:32 ` Nathan Neff
2010-04-17 2:23 ` Erik Iverson
2010-04-17 10:12 ` Eric S Fraga
2010-04-17 13:38 ` Nathan Neff
2010-04-18 1:01 ` Shelagh Manton
2010-04-18 10:44 ` Eric S Fraga
2010-04-19 0:24 ` Shelagh Manton
2010-04-19 2:06 ` Bernt Hansen
2010-04-19 8:33 ` Eric S Fraga
2010-04-19 11:05 ` Sebastian Rose
2010-04-20 9:19 ` Sébastien Vauban
2010-04-20 10:27 ` [OT] " Eric S Fraga
2010-04-20 14:48 ` Eric Schulte
2010-10-17 16:56 ` Rainer M Krug
2010-10-17 17:10 ` Eric Schulte
2010-10-18 15:02 ` Sébastien Vauban
2010-10-18 15:42 ` Dan Davison
2010-10-18 21:01 ` Sébastien Vauban
2010-10-18 16:50 ` Greg Troxel
2010-04-17 16:52 ` Matt Lundin
2010-04-18 1:55 ` Thomas S. Dye
2010-04-18 10:41 ` Eric S Fraga
2010-04-18 16:50 ` Dan Davison
2010-04-18 20:13 ` Štěpán Němec
2010-04-18 20:25 ` Eric S Fraga
2010-04-17 2:35 ` Dan Davison
2010-04-17 3:43 ` Nathan Neff [this message]
2010-04-17 3:55 ` Dan Davison
2010-04-17 11:03 ` Štěpán Němec
2010-04-17 13:56 ` Nathan Neff
2010-04-17 14:06 ` Erik Iverson
2010-04-17 14:28 ` Nathan Neff
2010-04-17 15:05 ` Eric Schulte
2010-04-17 1:34 ` Thomas S. Dye
2010-04-17 1:37 ` Bernt Hansen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=i2k211769421004162043o33fd6102s9679209b79a04a70@mail.gmail.com \
--to=nathan.neff@gmail.com \
--cc=davison@stats.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.