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

2010-10-18 Thread Sébastien Vauban
Hi Dan and Greg, Dan Davison wrote: > Sébastien Vauban > writes: > >> Hi Eric, >> >> "Eric Schulte" wrote: >>> The snippets used by the starter kit are available in their own git >>> repository at http://github.com/eschulte/yasnippet-org-mode >> >> Trying to clone it, I get: > > I think the above

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

2010-10-18 Thread Dan Davison
Sébastien Vauban writes: > Hi Eric, > > "Eric Schulte" wrote: >> The snippets used by the starter kit are available in their own git >> repository at http://github.com/eschulte/yasnippet-org-mode > > Trying to clone it, I get: I think the above URL is for a web browser. The URLs for git are li

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

2010-10-18 Thread Greg Troxel
Sébastien Vauban writes: > Hi Eric, > > "Eric Schulte" wrote: >> The snippets used by the starter kit are available in their own git >> repository at http://github.com/eschulte/yasnippet-org-mode > > Trying to clone it, I get: > > #+begin_src sh > [...@mediacenter] ~/src>git clone > http://gith

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

2010-10-18 Thread Sébastien Vauban
Hi Eric, "Eric Schulte" wrote: > The snippets used by the starter kit are available in their own git > repository at http://github.com/eschulte/yasnippet-org-mode Trying to clone it, I get: #+begin_src sh [...@mediacenter] ~/src>git clone http://github.com/eschulte/yasnippet-org-mode Cloning int

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

2010-10-17 Thread Eric Schulte
Yes, The snippets used by the starter kit are available in their own git repository at http://github.com/eschulte/yasnippet-org-mode Best -- Eric also, any suggestions or contributions are welcome Rainer M Krug writes: > On Tue, Apr 20, 2010 at 4:48 PM, Eric Schulte wrote: > >> Sébastien Vaub

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

2010-10-17 Thread Rainer M Krug
On Tue, Apr 20, 2010 at 4:48 PM, Eric Schulte wrote: > Sébastien Vauban writes: > > > Hi Eric, > > > > Eric S Fraga wrote: > >> it might be nice to have a worg page on snippets for org-mode? > > > > Sure. Or having them somewhere in the git directories... > > > > +1 for git directories. > Is the

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

2010-04-20 Thread Eric Schulte
Sébastien Vauban writes: > Hi Eric, > > Eric S Fraga wrote: >> it might be nice to have a worg page on snippets for org-mode? > > Sure. Or having them somewhere in the git directories... > +1 for git directories. That way users who keep their Emacs config in git repos can add the snippets as a

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

2010-04-20 Thread Eric S Fraga
On Tue, 20 Apr 2010 11:19:10 +0200, Sébastien Vauban wrote: [...] > > I'm happy to contribute a few. > > > > figure: > > #name : figure > > # -- > > #+attr_latex: width=$1\textwidth > > [[file:$2.pdf]] > > $0 > > Better use \linewidth instead of \textwidth. You will avoid bad surprises. > > T

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

2010-04-20 Thread Sébastien Vauban
Hi Eric, Eric S Fraga wrote: > it might be nice to have a worg page on snippets for org-mode? Sure. Or having them somewhere in the git directories... > I'm happy to contribute a few. > > figure: > #name : figure > # -- > #+attr_latex: width=$1\textwidth > [[file:$2.pdf]] > $0 Better use \line

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

2010-04-19 Thread Sebastian Rose
>> artist-mode has a full set of key bindings. I never use the mouse (for >> anything at all, if I can help it, due to RSI issues) and artist-mode is >> perfectly usable nonetheless! Type "C-h m" in artist-mode to see all >> the key bindings. > > I am aware of the keybindings, though I tend to u

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

2010-04-19 Thread Eric S Fraga
On Mon, 19 Apr 2010 00:24:46 + (UTC), Shelagh Manton wrote: > > On Sun, 18 Apr 2010 11:44:24 +0100, Eric S Fraga wrote: > > > > artist-mode has a full set of key bindings. I never use the mouse (for > > anything at all, if I can help it, due to RSI issues) and artist-mode is > > perfectly

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

2010-04-19 Thread Štěpán Němec
Dan Davison writes: > I guess, for Nate's original application (converting existing code to > src blocks), what might have been most useful is something to enclose a > given region in a source block. Can anyone show how to do that with > yasnippet (or anything else)? I don't have a ready-to-use s

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

2010-04-18 Thread Bernt Hansen
Shelagh Manton writes: > On Sun, 18 Apr 2010 11:44:24 +0100, Eric S Fraga wrote: > >> On Sun, 18 Apr 2010 01:01:56 + (UTC), Shelagh Manton >> wrote: >>> >>> On Sat, 17 Apr 2010 08:38:01 -0500, Nathan Neff wrote: >>> >>> You could play around with artist-mode if you use X. It uses the mouse

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

2010-04-18 Thread Shelagh Manton
On Sun, 18 Apr 2010 11:44:24 +0100, Eric S Fraga wrote: > On Sun, 18 Apr 2010 01:01:56 + (UTC), Shelagh Manton > wrote: >> >> On Sat, 17 Apr 2010 08:38:01 -0500, Nathan Neff wrote: >> >> You could play around with artist-mode if you use X. It uses the mouse >> with ascii symbols to create r

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

2010-04-18 Thread Eric S Fraga
On Sun, 18 Apr 2010 22:13:27 +0200, Štěpán Němec wrote: > > Dan Davison writes: > > I guess, for Nate's original application (converting existing code to > > src blocks), what might have been most useful is something to enclose a > > given region in a source block. Can anyone show how to do that

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

2010-04-18 Thread Dan Davison
Eric S Fraga writes: > On Sat, 17 Apr 2010 15:55:51 -1000, "Thomas S. Dye" wrote: >> On Apr 17, 2010, at 6:52 AM, Matt Lundin wrote: >> > 1. The first and simplest option is built into org-mode. Simply type: >> > >> > > Thanks Matt for this. I'd forgotten about the built-in definitions. > Thes

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

2010-04-18 Thread Eric S Fraga
On Sun, 18 Apr 2010 01:01:56 + (UTC), Shelagh Manton wrote: > > On Sat, 17 Apr 2010 08:38:01 -0500, Nathan Neff wrote: > > You could play around with artist-mode if you use X. It uses the mouse > with ascii symbols to create rectangles, lines etc. Then just change the > text how you need

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

2010-04-18 Thread Eric S Fraga
On Sat, 17 Apr 2010 15:55:51 -1000, "Thomas S. Dye" wrote: > On Apr 17, 2010, at 6:52 AM, Matt Lundin wrote: > > 1. The first and simplest option is built into org-mode. Simply type: > > > > Neat. What would you use yasnippets for, if anything? > > All the best, > Tom Good question! One case

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

2010-04-17 Thread Thomas S. Dye
On Apr 17, 2010, at 6:52 AM, Matt Lundin wrote: Erik Iverson writes: 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! There are quite a few other options.

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

2010-04-17 Thread Shelagh Manton
On Sat, 17 Apr 2010 08:38:01 -0500, Nathan Neff wrote: You could play around with artist-mode if you use X. It uses the mouse with ascii symbols to create rectangles, lines etc. Then just change the text how you need. There are some helpful functions on emacswiki that show you how to set up id

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

2010-04-17 Thread Matt Lundin
Erik Iverson writes: >> 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! There are quite a few other options. IMO, installing yasnippet is overkill

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

2010-04-17 Thread Eric Schulte
RE: collections of org-mode yasnippets There is a collection available on github http://github.com/RickMoynihan/yasnippet-org-mode RE: binding the tab key for Yas expansion in Org-mode It is tricky, I use the solution shown here http://eschulte.github.com/emacs-starter-kit/starter-kit-or

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

2010-04-17 Thread Nathan Neff
On Sat, Apr 17, 2010 at 9:06 AM, Erik Iverson wrote: > > I'm guessing what you really want there is >> >>(set (make-local-variable 'yas/trigger-key) [tab]) >> >>instead of >> >> > (make-variable-buffer-local 'yas/trigger-key) >> > (setq yas/trigger-

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

2010-04-17 Thread Erik Iverson
I'm guessing what you really want there is (set (make-local-variable 'yas/trigger-key) [tab]) instead of > (make-variable-buffer-local 'yas/trigger-key) > (setq yas/trigger-key [tab]) Hmmm. Do you guys un-map your TAB key so that it doesn't

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

2010-04-17 Thread Nathan Neff
On Sat, Apr 17, 2010 at 6:03 AM, Štěpán Němec wrote: > Dan Davison writes: > >> 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? > > > > Yeah, but there's some ma

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

2010-04-17 Thread Nathan Neff
What do you guys use for ditaa diagrams? Just copy/paste? Seems like it'd be a bit tedious to draw those boxes. --Nate On Sat, Apr 17, 2010 at 5:12 AM, Eric S Fraga wrote: > On Fri, 16 Apr 2010 21:23:35 -0500, Erik Iverson > wrote: > > > http://doc.norang.ca/org-mode.html#Yasnippets > > > >

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

2010-04-17 Thread Štěpán Němec
Dan Davison writes: >> 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? > > Yeah, but there's some magic code needed, which is also on Bernt's > page. > > (add-hook 'org-mo

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

2010-04-17 Thread Eric S Fraga
On Fri, 16 Apr 2010 21:23:35 -0500, Erik Iverson 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

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

2010-04-16 Thread Dan Davison
> 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? Yeah, but there's some magic code needed, which is also on Bernt's page. (add-hook 'org-mode-hook (lambda ()

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

2010-04-16 Thread Nathan Neff
On Fri, Apr 16, 2010 at 9:35 PM, Dan Davison wrote: > Nathan Neff writes: > > > On Fri, Apr 16, 2010 at 8:18 PM, Nathan Neff > 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. > >

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

2010-04-16 Thread Dan Davison
Nathan Neff writes: > On Fri, Apr 16, 2010 at 8:18 PM, Nathan Neff 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

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

2010-04-16 Thread Erik Iverson
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! ___ Emacs-orgmode mailing list Please use `Reply All' to send

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

2010-04-16 Thread Bernt Hansen
Nathan Neff writes: > 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 > > As an Emacs n00b, I'd like to know if anyone here has defined some k

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

2010-04-16 Thread Nathan Neff
On Fri, Apr 16, 2010 at 8:18 PM, Nathan Neff 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 > > *Sigh* I Googled around for about 15