From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: include file contents in org files? Date: Wed, 22 Aug 2007 01:44:02 +0200 Message-ID: <87bqd0qwql.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INdOM-00082s-Ec for emacs-orgmode@gnu.org; Tue, 21 Aug 2007 19:44:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INdOL-00082g-Ci for emacs-orgmode@gnu.org; Tue, 21 Aug 2007 19:44:10 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INdOL-00082d-9A for emacs-orgmode@gnu.org; Tue, 21 Aug 2007 19:44:09 -0400 Received: from hu-out-0506.google.com ([72.14.214.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INdOL-0004ni-93 for emacs-orgmode@gnu.org; Tue, 21 Aug 2007 19:44:09 -0400 Received: by hu-out-0506.google.com with SMTP id 23so2697933huc for ; Tue, 21 Aug 2007 16:44:07 -0700 (PDT) In-Reply-To: (Rainer Stengele's message of "Tue\, 21 Aug 2007 23\:47\:44 +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 Rainer Stengele 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