emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Dan Davison
Subject: [Orgmode] Re: Something like SETUPFILE, but in .emacs?
Date: Thu, 10 Feb 2011 23:17:28 +0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (darwin)

Gary Oberbrunner <address@hidden> writes:

> 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?

Hi Gary,

I haven't actually tried doing this, but I think some of the answers may
be in C-h v org-export-plist-vars.

Dan

org-export-plist-vars is a variable defined in `org-exp.el'.
Its value is shown below.

  This variable is potentially risky when used as a file local variable.

Documentation:
List of properties that represent export/publishing variables.
Each element is a list of 3 items:
1. The property that is used internally, and also for org-publish-project-alist
2. The string that can be used in the OPTION lines to set this option,
   or nil if this option cannot be changed in this way
3. The customization variable that sets the default for this option.

Value: 
((:link-up nil org-export-html-link-up)
 (:link-home nil org-export-html-link-home)
 (:language nil org-export-default-language)
 (:keywords nil org-export-page-keywords)
 (:description nil org-export-page-description)
 (:customtime nil org-display-custom-times)
 (:headline-levels "H" org-export-headline-levels)
 (:section-numbers "num" org-export-with-section-numbers)
 (:section-number-format nil org-export-section-number-format)
 (:table-of-contents "toc" org-export-with-toc)
 (:preserve-breaks "\\n" org-export-preserve-breaks)
 (:archived-trees nil org-export-with-archived-trees)
 (:emphasize "*" org-export-with-emphasize)
 (:sub-superscript "^" org-export-with-sub-superscripts)
 (:special-strings "-" org-export-with-special-strings)
 (:footnotes "f" org-export-with-footnotes)
 (:drawers "d" org-export-with-drawers)
 (:tags "tags" org-export-with-tags)
 (:todo-keywords "todo" org-export-with-todo-keywords)
 (:priority "pri" org-export-with-priority)
 (:TeX-macros "TeX" org-export-with-TeX-macros)
 (:LaTeX-fragments "LaTeX" org-export-with-LaTeX-fragments)
 (:latex-listings nil org-export-latex-listings)
 (:skip-before-1st-heading "skip" org-export-skip-text-before-1st-heading)
 (:fixed-width ":" org-export-with-fixed-width)
 (:timestamps "<" org-export-with-timestamps)
 (:author-info "author" org-export-author-info)
 (:email-info "email" org-export-email-info)
 (:creator-info "creator" org-export-creator-info)
 (:time-stamp-file "timestamp" org-export-time-stamp-file)
 (:tables "|" org-export-with-tables)
 (:table-auto-headline nil org-export-highlight-first-table-line)
 (:style-include-default nil org-export-html-style-include-default)
 (:style-include-scripts nil org-export-html-style-include-scripts)
 (:style nil org-export-html-style)
 (:style-extra nil org-export-html-style-extra)
 (:agenda-style nil org-agenda-export-html-style)
 (:convert-org-links nil org-export-html-link-org-files-as-html)
 (:inline-images nil org-export-html-inline-images)
 (:html-extension nil org-export-html-extension)
 (:xml-declaration nil org-export-html-xml-declaration)
 (:html-table-tag nil org-export-html-table-tag)
 (:expand-quoted-html "@" org-export-html-expand)
 (:timestamp nil org-export-html-with-timestamp)
 (:publishing-directory nil org-export-publishing-directory)
 (:preamble nil org-export-html-preamble)
 (:postamble nil org-export-html-postamble)
 (:auto-preamble nil org-export-html-auto-preamble)
 (:auto-postamble nil org-export-html-auto-postamble)
 (:author nil user-full-name)
 (:email nil user-mail-address)
 (:select-tags nil org-export-select-tags)
 (:exclude-tags nil org-export-exclude-tags)
 (:latex-image-options nil org-export-latex-image-default-option))



>
> 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:     address@hidden
> #+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}



reply via email to

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