emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [ox-latex] setting `org-latex-classes'
@ 2015-07-21 16:36 Seb
  2015-07-21 17:37 ` Nick Dokos
  0 siblings, 1 reply; 4+ messages in thread
From: Seb @ 2015-07-21 16:36 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Does one have to `require' ox-latex in ~/.emacs just to set
`org-latex-classes'?  I can't seem to find the proper hook where I can
add to this alist without loading ox-latex.

Cheers,

-- 
Seb

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

* Re: [ox-latex] setting `org-latex-classes'
  2015-07-21 16:36 [ox-latex] setting `org-latex-classes' Seb
@ 2015-07-21 17:37 ` Nick Dokos
  2015-07-21 17:53   ` Seb
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Dokos @ 2015-07-21 17:37 UTC (permalink / raw)
  To: emacs-orgmode

Seb <spluque@gmail.com> writes:

> Does one have to `require' ox-latex in ~/.emacs just to set
> `org-latex-classes'?  I can't seem to find the proper hook where I can
> add to this alist without loading ox-latex.
>

Use eval-after-load:

(eval-after-load "ox-latex"
   (add-to-list 'org-latex-classes ....))

Nick

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

* Re: [ox-latex] setting `org-latex-classes'
  2015-07-21 17:37 ` Nick Dokos
@ 2015-07-21 17:53   ` Seb
  2015-07-21 18:05     ` Rasmus
  0 siblings, 1 reply; 4+ messages in thread
From: Seb @ 2015-07-21 17:53 UTC (permalink / raw)
  To: emacs-orgmode

On Tue, 21 Jul 2015 13:37:39 -0400,
Nick Dokos <ndokos@gmail.com> wrote:

[...]

> Use eval-after-load:

> (eval-after-load "ox-latex" (add-to-list 'org-latex-classes ....))

Thanks, I tried that but I get a "Symbol's value as variable is void:
org-latex-classes" when starting Emacs.

-- 
Seb

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

* Re: [ox-latex] setting `org-latex-classes'
  2015-07-21 17:53   ` Seb
@ 2015-07-21 18:05     ` Rasmus
  0 siblings, 0 replies; 4+ messages in thread
From: Rasmus @ 2015-07-21 18:05 UTC (permalink / raw)
  To: emacs-orgmode

Seb <spluque@gmail.com> writes:

> On Tue, 21 Jul 2015 13:37:39 -0400,
> Nick Dokos <ndokos@gmail.com> wrote:
>
> [...]
>
>> Use eval-after-load:
>
>> (eval-after-load "ox-latex" (add-to-list 'org-latex-classes ....))
>
> Thanks, I tried that but I get a "Symbol's value as variable is void:
> org-latex-classes" when starting Emacs.

(eval-after-load "ox-latex" '(add-to-list 'org-latex-classes ....))

Or

(with-eval-after-load 'ox-latex (add-to-list 'org-latex-classes ....))

(untested)

-- 
Bang bang

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

end of thread, other threads:[~2015-07-21 18:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-21 16:36 [ox-latex] setting `org-latex-classes' Seb
2015-07-21 17:37 ` Nick Dokos
2015-07-21 17:53   ` Seb
2015-07-21 18:05     ` Rasmus

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).