Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with leuven theme and org macros #5552

Closed
brabalan opened this issue Mar 21, 2016 · 4 comments
Closed

Problem with leuven theme and org macros #5552

brabalan opened this issue Mar 21, 2016 · 4 comments

Comments

@brabalan
Copy link
Contributor

Description

The face for org-macros when using the leuven theme uses a face that does not work well with hl-line-mode. This has been fixed in the leuven theme in 2014 (see fniessen/emacs-leuven-theme#25) but for some reason the fix does not work with spacemacs. Could this be a conflict with the default theme and loading order?

The problematic face is org-macro.

Reproduction guide

  • Start Emacs
  • use the leuven theme (I put it first in dotspacemacs-themes)
  • open an org file
  • enter a macro {{{foo}}}

Observed behaviour:
This is displayed:
screen shot 2016-03-21 at 08 51 03

This is the problem with hl-line-mode:
screen shot 2016-03-21 at 08 51 56

Expected behaviour:
I started a vanilla emacs with leuven theme, and it looks like this:
screen shot 2016-03-21 at 08 53 11

It works well with hl-line-mode:
screen shot 2016-03-21 at 08 53 31

(Note that the color of the highlighted line is also different.)

System Info

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.105.14
  • Spacemacs branch: master (rev. a298a5a)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
((auto-completion :variables auto-completion-enable-snippets-in-popup t auto-completion-tab-key-behavior 'cycle)
 elfeed emacs-lisp finance git gnus javascript latex ocaml org
 (spell-checking :variables spell-checking-enable-auto-dictionary t))
@cpaulik
Copy link
Contributor

cpaulik commented Mar 21, 2016

This might be a problem with lazy loading? Changing to the leuven theme after the org file is already loaded looks fine.

@cpaulik
Copy link
Contributor

cpaulik commented Mar 21, 2016

Putting (spacemacs/load-theme 'leuven) into your dotspacemacs/user-config function can be a workaround.

@brabalan
Copy link
Contributor Author

@cpaulik Thank you for the workaround, it works.

@brabalan
Copy link
Contributor Author

brabalan commented Mar 8, 2017

I finally managed to understand where the issue comes from. Putting the leuven theme first in dotspacemacs-themes loads the one from emacs (I guess because packages are not loaded yet), so one has to manually load the theme from user-config.

@brabalan brabalan closed this as completed Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants