[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] include file contents in org files?
From: |
Bastien |
Subject: |
Re: [Orgmode] include file contents in org files? |
Date: |
Wed, 22 Aug 2007 01:44:02 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) |
Rainer Stengele <address@hidden> 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
- [Orgmode] include file contents in org files?, Rainer Stengele, 2007/08/21
- Re: [Orgmode] include file contents in org files?,
Bastien <=
- Re: [Orgmode] include file contents in org files?, Adam Spiers, 2007/08/22
- [Orgmode] Re: include file contents in org files?, Rainer Stengele, 2007/08/22
- Re: [Orgmode] Re: include file contents in org files?, Carsten Dominik, 2007/08/22
- [Orgmode] Re: include file contents in org files?, Rainer Stengele, 2007/08/22
- [Orgmode] Re: include file contents in org files?, Rainer Stengele, 2007/08/22
- Re: [Orgmode] Re: include file contents in org files?, Carsten Dominik, 2007/08/22
- [Orgmode] Re: include file contents in org files?, Rainer Stengele, 2007/08/22
- Re: [Orgmode] Re: include file contents in org files?, Carsten Dominik, 2007/08/23
- Re: [Orgmode] Re: include file contents in org files?, Daniel J. Sinder, 2007/08/23
- Re: [Orgmode] Re: include file contents in org files?, Carsten Dominik, 2007/08/23