emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: Subhan Michael Tindall <SubhanT@familycareinc.org>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: default headers for source code blocks
Date: Wed, 10 Sep 2014 00:24:38 -0400	[thread overview]
Message-ID: <49599ABA-1769-4EB3-92E7-FA517B9B1E20@gmail.com> (raw)
In-Reply-To: <6583026da8c34bcf9acce84acadc801a@fbmailsvr1.familycareinc.org>

[-- Attachment #1: Type: text/plain, Size: 1808 bytes --]

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 <sql TAB. 

Please excuse brevity. Sent from pocket computer with tiny non-haptic feedback keyboard. 

> On Sep 9, 2014, at 13:24, Subhan Michael Tindall <SubhanT@familycareinc.org> wrote:
> 
> My apologies if this is in TFM, but I can’t seem to find it after substantial digging.
> I’m using a lot of source code blocks lately.
> What I’d like is a way to specify a set of default 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 :comments 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 nothing that actually indicates if/how to manage it.
>  
> Thanks,
>  
>  
> Subhan Michael Tindall
> Program Analyst – FamilyCare Health Plans
> 825 NE Multnomah St, Suite 1400; Portland OR 97232
> Direct: 503-471-3127
> Fax:      503-471-3177
> Email:  subhant@familycareinc.org
> <image001.jpg>
>  
> 
> This message is intended for the sole use of the individual and entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you 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 reply email and delete the message.  Thank you.

[-- Attachment #2: Type: text/html, Size: 5541 bytes --]

  parent reply	other threads:[~2014-09-10  4:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-09 17:24 default headers for source code blocks Subhan Michael Tindall
2014-09-09 17:44 ` Ista Zahn
2014-09-09 19:11 ` Thorsten Jolitz
2014-09-10  4:24 ` Ken Mankoff [this message]
2014-09-10  7:31   ` Sebastien Vauban

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49599ABA-1769-4EB3-92E7-FA517B9B1E20@gmail.com \
    --to=mankoff@gmail.com \
    --cc=SubhanT@familycareinc.org \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).