emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Portability
@ 2011-07-04 19:16 Ista Zahn
  2011-07-04 20:54 ` Portability Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Ista Zahn @ 2011-07-04 19:16 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

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!

--
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Portability
  2011-07-04 19:16 Portability Ista Zahn
@ 2011-07-04 20:54 ` Eric Schulte
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2011-07-04 20:54 UTC (permalink / raw)
  To: Ista Zahn; +Cc: emacs-orgmode Mailinglist

Ista Zahn <izahn@psych.rochester.edu> 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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-04 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-04 19:16 Portability Ista Zahn
2011-07-04 20:54 ` Portability Eric Schulte

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).