emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bastien.guerry@wikimedia.fr>
To: Gary Oberbrunner <garyo@oberbrunner.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Something like SETUPFILE, but in .emacs?
Date: Sat, 12 Feb 2011 13:15:34 +0100	[thread overview]
Message-ID: <87ipwps8bv.fsf@altern.org> (raw)
In-Reply-To: <AANLkTimqttY1jKgME5BHf2H2Y7Ap+48vefD265yzsmct@mail.gmail.com> (Gary Oberbrunner's message of "Thu, 10 Feb 2011 16:40:44 -0500")

Hi Gary,

Gary Oberbrunner <garyo@oberbrunner.com> writes:

> I've put all my org-mode export template stuff into a setup file in
> my home dir, and I make all my org-mode files use it by putting
>  #+SETUPFILE: ~/my-setup.org
>
> My question is can I make this totally automatic, so every .org file
> I load gets that setupfile automatically?

Maybe just define a function that you can hook to
`find-file-not-found-functions' ?

The function would recognize you're finding a new .org file, and 
then insert "#+SETUPFILE: ~/my-setup.org" on the top of it.

HTH,

-- 
 Bastien

  parent reply	other threads:[~2011-02-12 13:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-10 21:40 Something like SETUPFILE, but in .emacs? Gary Oberbrunner
2011-02-10 21:59 ` Matthew Sauer
     [not found] ` <13311.1297374866@alphaville>
2011-02-10 22:39   ` Gary Oberbrunner
2011-02-10 23:17 ` Dan Davison
2011-02-12 12:15 ` Bastien [this message]
2011-02-13 15:53 ` Darlan Cavalcante Moreira
2011-02-13 18:57   ` Gary Oberbrunner
2011-02-13 20:40     ` Thomas S. Dye
2011-02-13 21:16     ` Dan Davison
2011-02-14  0:08       ` Bastien
2011-02-14  2:08       ` Gary Oberbrunner
2011-02-14 15:07         ` Matthew Sauer
2011-02-14 15:14           ` Matthew Sauer
2011-02-14 20:48             ` Gary Oberbrunner
     [not found]     ` <25508.1297658851@alphaville>
     [not found]       ` <AANLkTikhjWt=O6aes9P7eQWHMu5GY7_Q7Wp1omzNE__K@mail.gmail.com>
2011-02-14 20:49         ` Fwd: " Gary Oberbrunner

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=87ipwps8bv.fsf@altern.org \
    --to=bastien.guerry@wikimedia.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=garyo@oberbrunner.com \
    /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).