From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Something like SETUPFILE, but in .emacs? Date: Sat, 12 Feb 2011 13:15:34 +0100 Message-ID: <87ipwps8bv.fsf@altern.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=49705 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoFJQ-00037c-NI for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 08:14:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoFJP-00025P-Kq for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 08:14:56 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:59893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoFJP-000249-Dz for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 08:14:55 -0500 Received: by mail-bw0-f41.google.com with SMTP id 16so4021061bwz.0 for ; Sat, 12 Feb 2011 05:14:55 -0800 (PST) In-Reply-To: (Gary Oberbrunner's message of "Thu, 10 Feb 2011 16:40:44 -0500") 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: Gary Oberbrunner Cc: emacs-orgmode@gnu.org Hi Gary, Gary Oberbrunner 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