From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Portability Date: Mon, 04 Jul 2011 14:54:14 -0600 Message-ID: <87aactkbf4.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdqH2-0008Td-T1 for emacs-orgmode@gnu.org; Mon, 04 Jul 2011 17:01:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QdqH0-0004A9-8s for emacs-orgmode@gnu.org; Mon, 04 Jul 2011 17:01:44 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:51230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QdqGz-00049X-MO for emacs-orgmode@gnu.org; Mon, 04 Jul 2011 17:01:42 -0400 Received: by pzk4 with SMTP id 4so1950004pzk.0 for ; Mon, 04 Jul 2011 14:01:40 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ista Zahn Cc: emacs-orgmode Mailinglist Ista Zahn writes: > Hi all, > Over the past couple of days I've been happily tweaking my org-mode > settings. At one point something happened that gave me great pause. I > forgot to load a function that adds an APA style LaTeX export (using > apa6e.cls) to my org-export-latex-classes Alist. So of course when I > tried to export using that class it did not work. This made me realize > that my .org document depended on my .emacs file for export! This > strikes me as a very bad thing because if I want others to be able to > use my .org document I have to distribute (at least the relevant parts > of) my .emacs along with it. > > So all this got me thinking that perhaps setting up lots of > complicated org-mode related stuff in my .emacs is a bad idea, and > that perhaps I should use a template to do the setup in each .org > file. > > Please share any tips or suggestions you have related to this. What do > you do? How well does it work? What suggestions do you have for > someone just starting out with org-mode? > > Thanks! > I find that file-local-variables can be a convenient and portable way to include the relevant Org-mode configuration in the actual org-mode file itself. See [1], specifically the second longer form which can be placed at the end of a file. I've used this to specify custom latex classes, as well as change default export options. Best -- Eric Footnotes: [1] http://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html -- Eric Schulte http://cs.unm.edu/~eschulte/