all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: include file contents in org files?
Date: Wed, 22 Aug 2007 01:44:02 +0200	[thread overview]
Message-ID: <87bqd0qwql.fsf@bzg.ath.cx> (raw)
In-Reply-To: <fafmid$o21$1@sea.gmane.org> (Rainer Stengele's message of "Tue\, 21 Aug 2007 23\:47\:44 +0200")

Rainer Stengele <rainer.stengele@yahoo.de> writes:

> I'd like to have the initial lines (configuration) of any org file be
> the same.

Perhaps we can use Tempo [1] or Templates [2] for this?

Here is an example using Tempo:

--8<---------------cut here---------------start------------->8---
(require 'tempo)

(tempo-define-template "org-initial-options"
		       '("#+STARTUP: overview
#+TAGS: @HOME(h) @IGN @KUNDE(k) @UNTERWEGS(u)
#+TAGS: BESORGEN(b) COMPUTER(c) EMAIL(e) IGNORE(r) INFO(i)
#+STARTUP: hidestars
#+SEQ_TODO: TODO INARBEIT | DONE CANCELED DELEGATED")
		       nil
		       "Insert initial options in Org files.")

(define-abbrev org-mode-abbrev-table "options" ""
  'tempo-template-org-initial-options)
--8<---------------cut here---------------end--------------->8---

Then just type "options" at the very beginning of a new Org file, then
press C-x a e, it will expand into the desired options.

Regards,

Notes: 
[1]  http://www.emacswiki.org/cgi-bin/wiki/TempoMode
[2]  http://www.emacswiki.org/cgi-bin/wiki/TemplatesMode

-- 
Bastien

  reply	other threads:[~2007-08-21 23:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-21 21:47 include file contents in org files? Rainer Stengele
2007-08-21 23:44 ` Bastien [this message]
2007-08-22  9:10   ` Adam Spiers
2007-08-22  9:32     ` Rainer Stengele
2007-08-22  9:42       ` Carsten Dominik
2007-08-22 10:44         ` Rainer Stengele
2007-08-22 10:54           ` Rainer Stengele
2007-08-22 11:07             ` Carsten Dominik
2007-08-22 20:25               ` Rainer Stengele
2007-08-23 17:55                 ` Carsten Dominik
2007-08-23 23:32               ` Daniel J. Sinder
2007-08-24  2:57                 ` Carsten Dominik
2007-08-24 11:30                   ` Rainer Stengele
2007-08-22  1:30 ` Eddward DeVilla

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=87bqd0qwql.fsf@bzg.ath.cx \
    --to=bzg@altern.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 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.