1

I have installed leuven with melpa a while ago and updated it as of 31st of August 2019. I found out there is a dark version. How do I activate it at loading of Emacs? I have tried:

(add-to-list 'custom-theme-load-path " ~/.emacs.d/elpa/leuven-theme-20190831.1008/")
(load-theme 'leuven-dark t)

Note that (load-theme 'leuven t) works for the light version. I have tried comparing leuven-theme.el and leuven-dark-theme.el but could not find a clue about what I am doing wrong.

0

It seems you have to load leuven first and then switch to leuven-dark.So first do

  (load-theme 'leuven t)

Then load leuven-dark via

   M-x load-theme <RET> leuven-dark <RET>

Doing M-x describe-variable <RET> custom-enabled-themes <RET> shows that 'leuven-dark' is now installed.

My installation is via

 git clone git://github.com/fniessen/emacs-leuven-theme.git

I assume the same applies if you use the package manager.

  • I tried this and still got the same error: "error: Unknown theme ‘leuven’ " – Gabriel Bénédict Oct 4 '19 at 16:11
  • I've altered my answer as above. Seem to work. – user16762 Oct 5 '19 at 9:46
  • still doesn't work for me with your updated answer :( – Gabriel Bénédict Oct 13 '19 at 10:27
  • Are you using the package from (MELPA?) or from git? I don't use any packages from MELPA since over the years I've had numerous installation problems with them. – user16762 Oct 15 '19 at 10:33
  • it was MELPA. But I tried to install it over git (first having uninstalled my MELPA version), following your advice. But still no success. – Gabriel Bénédict Nov 5 '19 at 22:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.