emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Something like SETUPFILE, but in .emacs?


From: Bastien
Subject: Re: [Orgmode] Something like SETUPFILE, but in .emacs?
Date: Sat, 12 Feb 2011 13:15:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Gary,

Gary Oberbrunner <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]