From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: default headers for source code blocks Date: Wed, 10 Sep 2014 00:24:38 -0400 Message-ID: <49599ABA-1769-4EB3-92E7-FA517B9B1E20@gmail.com> References: <6583026da8c34bcf9acce84acadc801a@fbmailsvr1.familycareinc.org> Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-BE84C4D6-0380-4403-BFA4-4D51A49222CF Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRZSc-00089e-6A for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 00:24:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRZSX-0006VB-51 for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 00:24:50 -0400 Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:49295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRZSW-0006V6-Uv for emacs-orgmode@gnu.org; Wed, 10 Sep 2014 00:24:45 -0400 Received: by mail-qg0-f47.google.com with SMTP id i50so4061012qgf.6 for ; Tue, 09 Sep 2014 21:24:44 -0700 (PDT) In-Reply-To: <6583026da8c34bcf9acce84acadc801a@fbmailsvr1.familycareinc.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Subhan Michael Tindall Cc: "emacs-orgmode@gnu.org" --Apple-Mail-BE84C4D6-0380-4403-BFA4-4D51A49222CF Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable What about custom template expansions? http://nicholasvanhorn.com/2014/04/07/org-structure-completion/ Advantage: your C-c C-v d sql RET becomes only On Sep 9, 2014, at 13:24, Subhan Michael Tindall wrote: >=20 > My apologies if this is in TFM, but I can=92t seem to find it after substa= ntial digging. > I=92m using a lot of source code blocks lately. > What I=92d like is a way to specify a set of default headers to insert whe= n a new block is created. > Right now: > C-c C-v d sql RET > #+begin_src sql > #+end_src > =20 > What I want is this: > C-c C-v d sql RET > #+begin_src sql :exports code :tangle yes :comments noweb > #+end_src > =20 > Is there a configuration variable I can set for this? All I can find is r= efs to see source language documentation, but nothing that actually indicate= s if/how to manage it. > =20 > Thanks, > =20 > =20 > Subhan Michael Tindall > Program Analyst =96 FamilyCare Health Plans > 825 NE Multnomah St, Suite 1400; Portland OR 97232 > Direct: 503-471-3127 > Fax: 503-471-3177 > Email: subhant@familycareinc.org > > =20 >=20 > This message is intended for the sole use of the individual and entity to w= hich it is addressed and may contain information that is privileged, confide= ntial and exempt from disclosure under applicable law. If you are not the in= tended addressee, nor authorized to receive for the intended addressee, you a= re hereby notified that you may not use, copy, disclose or distribute to any= one the message or any information contained in the message. If you have rec= eived this message in error, please immediately advise the sender by reply e= mail and delete the message. Thank you. --Apple-Mail-BE84C4D6-0380-4403-BFA4-4D51A49222CF Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
What about custom template expansions?=

http://nicholasvanhorn.com/2014/04/07/org-structur= e-completion/

Advantage: your C-c C-v d sql RET becomes only <sql T= AB. 

Please excuse brevity. Sent from pocket computer wit= h tiny non-haptic feedback keyboard. 

On Sep 9, 2014, at 1= 3:24, Subhan Michael Tindall <SubhanT@familycareinc.org> wrote:

=

My apologies if this is in TFM, but I can=E2=80=99t s= eem to find it after substantial digging.

I=E2=80=99m using a lot of source code blocks lately.=

What I=E2=80=99d like is a way to specify a set of de= fault headers to insert when a new block is created.

Right now:

C-c C-v d sql RET

#+begin_src sql

#+end_src

 

What I want is this:

C-c C-v d sql RET

#+begin_src sql  :exports code :tangle yes :comm= ents noweb

#+end_src

 

Is there a configuration variable I can set for this?=   All I can find is refs to see source language documentation, but noth= ing that actually indicates if/how to manage it.

 

Thanks,

 

 

Subhan Michael Ti= ndall

Program Analyst =E2=80=93 FamilyCare Health Plans

825 NE Multnomah St, Suite 1400; Portland OR 97232

Direct: 503-471-3127

Fax:      503-471-317= 7

Email:  subhant@familycareinc.org

<image001.jpg>

 


This message is intended for the sole use of the individual and entity t= o which it is addressed and may contain information that is privileged, conf= idential and exempt from disclosure under applicable law. If you are not the= intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute to= anyone the message or any information contained in the message. If you have= received this message in error, please immediately advise the sender by rep= ly email and delete the message.  Thank you.
= --Apple-Mail-BE84C4D6-0380-4403-BFA4-4D51A49222CF--