fniessen / emacs-leuven-theme

This Emacs theme reduces eye strain with a light, high-contrast color scheme, syntax highlighting, and support for multiple modes. Enhance your coding experience! #emacs #theme #coding #orgmode
GNU General Public License v3.0
696 stars 59 forks source link

Can't use dark theme: Unknown theme 'leuven-dark' #67

Closed riclage closed 4 years ago

riclage commented 4 years ago

I see the themes listed and can use the original leuven theme. However, when I try to install the leuven-dark theme, I get the message:

Unknown theme 'leuve-dark'

This seems to be a similar issue as this user is facing: https://emacs.stackexchange.com/questions/52965/how-to-activate-leuven-dark-theme

The workaround proposed there also doesn't work for me.

SNTag commented 4 years ago

you should put here what you're doing to load the theme. Also, is the error message actually stating 'leuve-dark'?

riclage commented 4 years ago

Thanks, I'm doing exactly what the answer I linked suggested:

  (load-theme 'leuven t)

Then load leuven-dark via

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

is the error message actually stating 'leuve-dark'?

yes.

SNTag commented 4 years ago

Finally got to a computer. I don't use leuven-dark much, but I put together a hacky solution.

  1. Remove any previous Leuven installations.
  2. Download Leuven from Git as described in the ReadMe.
  3. From the downloaded leuven directory, delete the file 'leuven-theme.el' (note: you may want to run 'make-dark-theme.sh' first. Not sure what the benefits are)
  4. In the file 'leuven-dark-theme.el', modify the line (provide-theme 'leuven-dark) to (provide-theme 'leuven). The line is close to the very end of the file.
  5. Rename 'leuven-dark-theme.el' to 'levuen-theme.el'

It should now load as a dark theme. There might be a better way, but the stack answer wasn't really working for me either.

SNTag commented 4 years ago

I think I've found a better way to enable leuven-dark. I'll do some more tests (and research) later and pass my solution along to the authors once I'm certain it improves the theme.

fniessen commented 4 years ago

Dear @SNTag , if you wanna improve the README, you can send a Pull Request, and I'll gladly incorporate it! Thanks...

SNTag commented 4 years ago

my suggested edits can be seen in pull request #68

fniessen commented 4 years ago

Merged. Thanks a lot!