-
-
Notifications
You must be signed in to change notification settings - Fork 17
Applying minions-mode-line-face to major-mode indicator #32
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
Conversation
That is a bug in It appears that this not only applies the correct face to the minions segment but that it at the same time strips all other properties: (telephone-line-defsegment* telephone-line-minions-mode-segment ()
(telephone-line-raw minions-mode-line-modes t))
The variable The reason that it does not blend in when using That is problematic because many segments are written with the assumption that they do not have to and usually should not specify a face. This is one of the major reasons why I don't use I want to keep Also I think changing So in summary, I don't think anything should be changed in this package and I am not merging this, but thanks for the effort. |
|
Strange enough for me. I've injected minions like this: (telephone-line-defsegment my/telephone-line-minions-mode-segment ()
minions-mode-line-modes)I don't quite understand why shouldn't major-mode and But you're the original author and if you don't see any problems than that's "not bug but feature". Sorry for wasting your time... |
It was added to give users the option to make the minor-mode menu look different from anything else. See #23.
Well by default this effectively is diff --git a/minions.el b/minions.el
index 00aff2f..332c569 100644
--- a/minions.el
+++ b/minions.el
@@ -153,6 +153,7 @@ (defvar minions-mode-line-modes
mouse-1: Display major mode menu
mouse-2: Show help for major mode
mouse-3: Toggle minor modes"
+ face nil
mouse-face mode-line-highlight
local-map ,mode-line-major-mode-keymap)
'("" mode-line-process)If it does, then I could add that. I hope that doesn't break anything for anybody else. |
It doesn't unfortunately... 😞 Sorry to bother you! |
|
😀 I might some day look into why that doesn't work, seems like an opportunity to learn about subtle different ways of propertizing mode-line elements. |
Hello!
I've been using
minionswith the vanilla mode-line and everything was ok.minionsis fantastic!Now I've moved from vanilla mode-line to the
telephone-line. As the built in minions segment doesn't support mouse clicks (it just prints plain text) I've injectedminionsinto it. But I found that the major-mode part of the result doesn't use the background provided but inherits the base mode-line face:I've tried to propertize major-mode part with the same code as for minor-mode part and it seems to work!
This changes keep


minionsworking for the vanilla mode-line both standard and themed: