I have the following code in my init.el file:
(use-package org-plus-contrib
:ensure t
:config (progn (require 'ox-extra)
(ox-extras-activate '(ignore-headlines))))
The :ensure t
supposedly installs the package if it is not already installed. Without it, I would get a warning message telling me the package cannot be loaded.
However, even with :ensure t
I still get the warning: Error (use-package): Cannot load org-plus-contrib
.
This also occurs with other packages (spacemacs-theme
, matlab-mode
).
But it does properly work for many other packages (org, all-the-icons,doom-themes,neotree, exec-path-from-shell).
Question: Why is this happening and how I can fix it?
Thanks for the help! :D
emacs --debug-init
to see if you can get further information from the stack trace. Post the output that you get from that and it will be easier to get help. – MTS Aug 8 '18 at 18:57--no-window-system
to force opening emacs in a terminal. I don't see a corresponding option to force opening the GUI version and as far as I know the GUI version is the default. – MTS Aug 8 '18 at 23:48(setq debug-on-error t)
near the top of yourinit.el
and just start emacs the way you normally would. It should enter the debugger when you encounter the error. – MTS Aug 8 '18 at 23:49require
oruse-package
is also pretty similar; my dup target suggestion is more general and has an answer with a thorough explanation. – npostavs Aug 9 '18 at 1:31