From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: org-babel - utility to ease chopping src chunks into smaller org entries Date: Sun, 19 Sep 2010 23:44:14 +0200 Message-ID: References: <87mxrdzasq.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=39661 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxRgP-0000LF-RW for emacs-orgmode@gnu.org; Sun, 19 Sep 2010 17:44:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxRgO-00067T-Qs for emacs-orgmode@gnu.org; Sun, 19 Sep 2010 17:44:25 -0400 Received: from lo.gmane.org ([80.91.229.12]:46801) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxRgO-00067E-Jj for emacs-orgmode@gnu.org; Sun, 19 Sep 2010 17:44:24 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OxRgN-0000zw-3I for emacs-orgmode@gnu.org; Sun, 19 Sep 2010 23:44:23 +0200 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Sep 2010 23:44:23 +0200 Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Sep 2010 23:44:23 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Sébastien Vauban writes: > Hi Richard, > > Richard Riley wrote: >> I often find myself chopping a large source code block into smaller >> entities with their own notes, tags and comments etc. This small utility >> facilitates that by wrapping the current region with org entry markers >> and src code delimiters. It assumes you are in a currently src block. >> >> http://splash-of-open-sauce.blogspot.com/2010/09/mark-region-as-src-code-if-prefix-used.html > > That seems very interesting... and promising. It's the sort of thing I often > need to do as well, though maybe with slight differences from your code. > >> Its currently hardcoded for emacs-lisp but it might be useful nonetheless. > > Just a question (that could, maybe, make this limitation disappear): did you > try using Yasnippet (with its =yas/selected-text= possibilities) for this job? > > Best regards, > Seb Nope. I never once managed to get yasnippet working in any way that didnt conflict with tabbing for indentation or somehow start inserting templates where I didnt want them. But I must admit I didn't try very hard ;) If you want to share you yasnippet setup I will try it. -- ☘ http://www.shamrockirishbar.com, http://splash-of-open-sauce.blogspot.com/ http://www.richardriley.net