emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Dushyant Juneja <juneja.dushyant@gmail.com>,
	emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: use-package with ox-latex
Date: Tue, 03 Jan 2017 14:25:06 +0000	[thread overview]
Message-ID: <CAFyQvY1PBuxv3Atohb_jaNETt8AtFR=_QVw4nHR1Hztm=VcPaA@mail.gmail.com> (raw)
In-Reply-To: <CAJkb0UPYRjZEtOW14eiY1JfevskBgKtUteEeM78yzLsy0ANX6A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2366 bytes --]

      parent reply	other threads:[~2017-01-03 14:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-27 13:01 use-package with ox-latex Dushyant Juneja
2016-12-27 13:39 ` Stig Brautaset
2017-01-03 14:25 ` Kaushal Modi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFyQvY1PBuxv3Atohb_jaNETt8AtFR=_QVw4nHR1Hztm=VcPaA@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=juneja.dushyant@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).