emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] use-package with ox-latex


From: Kaushal Modi
Subject: Re: [O] use-package with ox-latex
Date: Tue, 03 Jan 2017 14:25:06 +0000

On Tue, Dec 27, 2016 at 8:02 AM Dushyant Juneja <address@hidden> wrote:
Hi all,

I was trying to wrap ox-latex in a use-package configuration. My use-package statement is super simple:

(use-package ox-latex
:defer t)

However, emacs cribs on this at startup as follows:

package-compute-transaction: Package ‘ox-latex-’ is unavailable

Looks like use-package is trying to "install" an ox-latex package. Do you have the defcustom use-package-always-ensure set to a non-nil value? 

I have that defcustom set to the default value of nil and the org setup organization as below:

(use-package org
  ;; snip
  :mode ("\\.org\\'" . org-mode)
  :config
  (progn
    ;; snip
    (use-package ox
      :defer t
      :config
      (progn
        ;; snip
        (use-package ox-latex
          :config
          (progn
            ;; snip
            ))))))

That way, the ox package and the nested ox-latex, etc. are not required until I export any org document for the first time.

Full org setup as of today: https://github.com/kaushalmodi/.emacs.d/blob/6d8d0073d92f8dc118e84385c5274f810062a92f/setup-files/setup-org.el
--

Kaushal Modi


reply via email to

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