From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: use-package with ox-latex Date: Tue, 03 Jan 2017 14:25:06 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1142ed18fbdc220545316f67 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOQ1f-0004lQ-SM for emacs-orgmode@gnu.org; Tue, 03 Jan 2017 09:25:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOQ1e-0006IW-TV for emacs-orgmode@gnu.org; Tue, 03 Jan 2017 09:25:19 -0500 Received: from mail-vk0-x22b.google.com ([2607:f8b0:400c:c05::22b]:33953) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOQ1e-0006IQ-PK for emacs-orgmode@gnu.org; Tue, 03 Jan 2017 09:25:18 -0500 Received: by mail-vk0-x22b.google.com with SMTP id x186so274582583vkd.1 for ; Tue, 03 Jan 2017 06:25:18 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Dushyant Juneja , emacs-org list --001a1142ed18fbdc220545316f67 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Dec 27, 2016 at 8:02 AM Dushyant Juneja 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 =E2=80=98ox-latex-=E2=80=99 is unava= ilable > 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/6d8d0073d92f8dc118e84385c5274f= 810062a92f/setup-files/setup-org.el --=20 Kaushal Modi --001a1142ed18fbdc220545316f67 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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)

<= div class=3D"gmail_msg">However, emacs cribs on this at startup as follows:=

package-compute-transaction: Package = =E2=80=98ox-latex-=E2=80=99 is unavailable

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

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

(use-package org
=C2=A0 ;; snip
<= div>=C2=A0 :mode ("\\.org\\'" . org-mode)
=C2=A0 :c= onfig
=C2=A0 (progn
=C2=A0 =C2=A0 ;; snip
=C2= =A0 =C2=A0 (use-package ox
=C2=A0 =C2=A0 =C2=A0 :defer t
=C2=A0 =C2=A0 =C2=A0 :config
=C2=A0 =C2=A0 =C2=A0 (progn
<= div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; snip
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 (use-package ox-latex
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :con= fig
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (progn
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; snip
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 ))))))

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

--

Kaushal Modi

--001a1142ed18fbdc220545316f67--