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

Unthemed powerline when switching to *Messages* buffer while using powerline-center-evil-theme #170

Open
rubin55 opened this issue Mar 15, 2019 · 7 comments

Comments

@rubin55
Copy link

rubin55 commented Mar 15, 2019

When using powerline-center-evil theme, and switching to the Messages buffer, the powerline theme is unapplied. Switching back to Buffer List or scratch re-enables the theme. See:

Screenshot 2019-03-14 at 21 19 14

And with multiple windows:

Screenshot 2019-03-14 at 21 17 22

@milkypostman
Copy link
Owner

milkypostman commented Mar 31, 2019 via email

@c-alpha
Copy link
Contributor

c-alpha commented Apr 1, 2019

Could it be the case that some other package is getting in the way here? Are all packages current versions?

@milkypostman
Copy link
Owner

milkypostman commented Apr 1, 2019 via email

@c-alpha
Copy link
Contributor

c-alpha commented Apr 3, 2019

* is default in emacs. i think you probably have something else changing the name.

You are right, of course. I realised as I had submitted my comment, and have edited it immediately. Ashes to my head. :-(

The screenshots hint to ParEdit and UndoTree being used. If and when "unfavourable package combination" were a suspicion to be investigated, @rubin55 would need to set his .emacs(.d) and custom.el aside, start with nothing but powerline loaded, and keep trying other packages in turn in combination with powerline (i.e. powerline+A, powerline+B, etc.). This admittedly can be a lengthy process, but without an MWE it will be very difficult.

@rubin55
Copy link
Author

rubin55 commented Apr 4, 2019

I've moved my .emacs and .emacs.d aside and came up with a minimal-ish .emacs. This depends on no other packages but whatever comes as default with Emacs 26.1 and the powerline and evil packages themselves. see here:
dotemacs-repoducer.txt

To try, install that as .emacs, then M-x package-install evil and M-X package-install powerline, restart, switch to Messages buffer and observe the same bug. I'm running Emacs 26.1 on Mac OS from https://emacsformacosx.com/ . I observed the issue on Gentoo Linux and on Windows 10 using Emacs 26.1 too (I don't think it's platform specific).

@milkypostman
Copy link
Owner

is this still happening? almost two years later?

@duianto
Copy link

duianto commented May 11, 2021

Cause

The issue occurs when powerline is required and loaded after evil.

evil before powerline

  (require 'evil)
  (evil-mode 1)

  (require 'powerline)
  (powerline-center-evil-theme)

Pressing the following on startup:

C-h e			;; view-echo-area-messages

Results in:

emacs_2021-05-11_11-09-19

powerline before evil

  (require 'powerline)
  (powerline-center-evil-theme)

  (require 'evil)
  (evil-mode 1)

Pressing the following on startup:

C-h e			;; view-echo-area-messages

Results in:

emacs_2021-05-11_11-13-04

System

powerline-20210428.1229
evil-20210503.2034
GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26
Windows 10 Version 2004


In rubin55's config:

  • evil is required and loaded on line: 98
;; Enable evil mode.
(require 'evil)
(evil-mode 1)
  • powerline is required and loaded on line: 139
;; Enable powerline status bar.
(require 'powerline)
;;(setq powerline-image-apple-rgb t)
(powerline-center-evil-theme)

This isn't limited to the powerline-center-evil-theme it also happens with the powerline-default-theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants