From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Sauer Subject: Re: Something like SETUPFILE, but in .emacs? Date: Thu, 10 Feb 2011 15:59:42 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1117823298==" Return-path: Received: from [140.186.70.92] (port=57577 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PneYF-0004m6-Ag for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 16:59:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PneYD-0004d0-9i for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 16:59:46 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:50835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PneYC-0004cY-Vq for emacs-orgmode@gnu.org; Thu, 10 Feb 2011 16:59:45 -0500 Received: by eyh6 with SMTP id 6so1042299eyh.0 for ; Thu, 10 Feb 2011 13:59:43 -0800 (PST) In-Reply-To: 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: emacs-orgmode@gnu.org --===============1117823298== Content-Type: multipart/alternative; boundary=0015174bf1ecec75f7049bf4b22c --0015174bf1ecec75f7049bf4b22c Content-Type: text/plain; charset=ISO-8859-1 First time poster as well. Clarification. You are wanting to have these options only inflict themselve on .org files? I am wondering if they could be in .emacs or called from .emacs or auto inserted, or maybe like the text export options are via a shortcut command? I think I might want a generic set insertable into a new .org file when I make it via a C-c command if I want it in but not necessarily automatically. That way I have to think about it and just want something vanilla (if I am writing a book for instance and not just a project list?) or can customize for a particular file since I am thnking of it? Matthew S On Thu, Feb 10, 2011 at 3:40 PM, Gary Oberbrunner wrote: > First time poster on this list, but old-school Emacs user since 1982. And > I have to say, org-mode is amazing. I'm running current git master on emacs > 24.0.50.1 on Windows. > > 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? > > btw, here's my settings in my setup file in case anyone's interested. > Mostly export stuff for HTML and LaTeX so the output comes out nice. > > ## Emacs org-mode settings. Include into a .org file at the end like this: > ## #+SETUPFILE: ~/emacs-org-mode-setup.org > #+AUTHOR: me > #+EMAIL: garyo@example.org > #+DATE: > #+DESCRIPTION: > #+KEYWORDS: > #+LANGUAGE: en > #+OPTIONS: H:2 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t > author:nil email:nil creator:nil timestamp:nil > #+OPTIONS: TeX:t LaTeX:auto skip:nil d:nil todo:t pri:nil tags:not-in-toc > #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path: > http://orgmode.org/org-info.js > #+EXPORT_SELECT_TAGS: export > #+EXPORT_EXCLUDE_TAGS: noexport > #+LINK_UP: > #+LINK_HOME: > # Page formatting, use full page w/ less whitespace: > #+LaTeX_HEADER: \usepackage[cm]{fullpage} > #+LaTeX_HEADER: \usepackage[compact]{titlesec} > # Snug up lists: > #+LaTeX_HEADER: \usepackage{paralist} > #+LaTeX_HEADER: \let\itemize\compactitem > #+LaTeX_HEADER: \let\description\compactdesc > #+LaTeX_HEADER: \let\enumerate\compactenum > # Colors: > #+LaTeX_HEADER: \usepackage{color} > > > -- > -- Gary > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > --0015174bf1ecec75f7049bf4b22c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable First time poster as well. =A0= Clarification. =A0You are wanting to have these options only inflict themse= lve on .org files? =A0 I am wondering if they could be in .emacs or called = from .emacs or auto inserted, or maybe like the text export options are via= a shortcut command? =A0 I think I might want a generic set insertable into= a new .org file when I make it via a C-c =A0command if I want it in but no= t necessarily automatically. =A0That way I have to think about it and just = want something vanilla (if I am writing a book for instance and not just a = project list?) or can customize for a particular file since I am thnking of= it?

Matthew S
On Thu, Feb 10, 2011 at 3:40 P= M, Gary Oberbrunner <garyo@oberbrunner.com> wrote:
First time poster on this list, but old-school Emacs user since 1982. =A0An= d I have to say, org-mode is amazing. =A0I'm running current git master= on emacs 24.0.50.1 on Windows.

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
=A0#+SETUPFILE: ~/my-setu= p.org

My question is can I make this totally a= utomatic, so every .org file I load gets that setupfile automatically?

btw, here's my settings in my setup file in case anyone's intereste= d. =A0Mostly export stuff for HTML and LaTeX so the output comes out nice.<= /div>

## Emacs org-mode settings. =A0Include into a= .org file at the end like this:
## #+SETUPFILE: ~/emacs-org-mode-setup.org
#+AUTHOR: =A0 =A0me
#+EMAIL: =A0 =A0 garyo@example.org
#+DATE:=A0
#+DESCRIPTION:=A0
#+KEYWORDS:=A0
#+LANGUAGE: =A0en=
#+OPTIONS: =A0 H:2 num:nil toc:nil \n:nil @:t ::t |:t ^:t -:t f:= t *:t <:t author:nil email:nil creator:nil timestamp:nil
#+OPT= IONS: =A0 TeX:t LaTeX:auto skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:<= a href=3D"http://orgmode.org/org-info.js" target=3D"_blank">http://orgmode.= org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPO= RT_EXCLUDE_TAGS: noexport
#+LINK_UP: =A0=A0
#+LINK_HOME:=A0
# Page formattin= g, use full page w/ less whitespace:
#+LaTeX_HEADER: \usepackage[= cm]{fullpage}
#+LaTeX_HEADER: \usepackage[compact]{titlesec}
# Snug up lists:
#+LaTeX_HEADER: \usepackage{paralist}
= #+LaTeX_HEADER: \let\itemize\compactitem
#+LaTeX_HEADER: \let\des= cription\compactdesc
#+LaTeX_HEADER: \let\enumerate\compactenum = =A0
# Colors:
#+LaTeX_HEADER: \usepackage{color}

<= /div>
--
-- Gary

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


--0015174bf1ecec75f7049bf4b22c-- --===============1117823298== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1117823298==--