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

add faces for which-key #58

Merged
merged 1 commit into from
Jun 28, 2016

Conversation

deb0ch
Copy link
Contributor

@deb0ch deb0ch commented Jun 27, 2016

Add support for which-key faces.

Before:
screenshot from 2016-06-27 20-13-06

Now:

screenshot from 2016-06-27 20-09-57

Note that local-map specific commands are slightly yellow, making them distinguishable but not as bright as command groups so that it remains instinctive that it is a command and not a command group.

NB: Some of the faces I wasn't exactly sure what they did so I left them commented as information to the reader.

(,terminal-class (:foreground ,terminal-monokai-red
:weight bold))))

;; `(which-key-special-key-face
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/justbur/emacs-which-key/blob/master/which-key.el#L405

It looks like it inherits the key-face but inverts it. The face is applied under these conditions: ""These keys will automatically be truncated to one character
and have `which-key-special-key-face' applied to them. This is
disabled by default. Try this to see the effect."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so what should we do about it ?

Remove it from the theme or explicitly set the invert-video + weight bold just like in the package ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to be the same strategy with which-key-highlighted-command-face.

I think delete the commented blocks. We (I) can add them if they're required in the future.

@oneKelvinSmith
Copy link
Owner

This is a great PR. Thank you :)

@deb0ch
Copy link
Contributor Author

deb0ch commented Jun 28, 2016

Removed commented blocks.

Thanks to you too, glad you like it ! 😄

@oneKelvinSmith oneKelvinSmith merged commit 01d08b1 into oneKelvinSmith:master Jun 28, 2016
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

Successfully merging this pull request may close these issues.

2 participants