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

2017-01-03 Thread Kaushal Modi
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 ‘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


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

2016-12-27 Thread Stig Brautaset

Dushyant Juneja  writes:

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

ox-latex is part of org, which ships with Emacs. You should be able to
just use:

,
| (require 'ox-latex)
`

Alternatively:

,
| (use-package org
|   :config
|   (require 'ox-latex))
`

Finally, if you prefer org-plus-contrib you can do:

,
| (use-package org
|   :ensure org-plus-contrib
|   :config
|   (require 'ox-latex))
`

Hope this helps!

Stig