On Tue, Dec 27, 2016 at 8:02 AM Dushyant Juneja <juneja.dushy...@gmail.com>
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