I have this in my init.el
(require 'package)
(setq package-enable-at-startup nil)
;;; Remove SC if you are not using sunrise commander and org if you like outdated packages
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")))
(package-initialize)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Bootstrapping use-package
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
Then this lower down inside of custom-set-variables
:
'(package-selected-packages
(quote
(org-ref techela tuareg haskell-mode gnuplot gnuplot-mode helm-ispell ac-ispell paredit ox-tufte auctex json org-grep iedit wgrep helm geiser slime-company company-jedi zzz-to-char rainbow-delimiters avy ivy projectile twittering-mode zerodark-theme pretty-mode flycheck-clang-analyzer flycheck-irony flycheck yasnippet company-c-headers company-shell company-irony irony irony-mode company-lua mark-multiple expand-region popup-kill-ring dmenu ido-vertical-mode ido-vertical ox-html5slide centered-window-mode htmlize ox-twbs diminish erc-hl-nicks symon rainbow-mode switch-window dashboard smex company sudo-edit emms magit org-bullets hungry-delete beacon linum-relative spaceline fancy-battery exwm use-package)))
My problem is when I clear out everything from my .emacs.d/
but the init.el
which calls config.org
which does lots of configurations, (i.e., I'm forcing a complete reinstall of everything package-wise) I get errors such as
Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "ox-tufte")
require(ox-tufte)
eval((require 'ox-tufte) nil)
That is, in my config.org
a call is made, (require 'ox-tufte)
and the error above happens. A clean startup (no existing elpa
directory) should go and get ox-tufte
should it not? It's included in the package-selected-packages
list. My understanding is that this
;;; Bootstrapping use-package
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
ensures anything listed in the package-selected-packages
if not found, will be gotten from melpa etc. and setup. But then I don't see org-mode (latest from repo) specifically listed anywhere either. What am I missing here?