Skip to content

Conversation

@luispauloml
Copy link
Contributor

God mode's README makes a few suggestions on how to set up visual indicators but none of them are actually provided by the package itself. Emacs's default visual indicators for modes are their lighters, so I thought it would be good to allow the customization of the face and the string of God mode's lighter, and this is what this patch does:

  • adds the god-mode-lighter-string variable to allow the change the string "God" or to completely disable the lighter,
  • adds the god-mode-lighter face to allow the user change the face of the lighter.
    If a user had already setup another visual indicator and had removed God mode's lighter by deleting it from minor-mode-alist, now it is easier to hide it by just setting god-mode-lighter-string to nil.

As an example of the results, you can see below what I do: I use Emacs's default theme and Nano Theme light and I set god-mode-lighter to inherit from error and nano-critical-i for each theme, respectively. Also, I updated the README and actually added an example of how to set the new face to inherit from error, which is the most contrasting default face in Emacs that I could find.

image

Add a face for the lighter, and allow the lighter string to be
customized.  Also update README describing these customizations.
Copy link
Collaborator

@darth10 darth10 left a comment

Choose a reason for hiding this comment

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

This is a nice improvement @luispauloml!
There are a few minor comments I've made, but LGTM other than that. 💯

@luispauloml
Copy link
Contributor Author

luispauloml commented Dec 30, 2022

@darth10, I've added a new commit with the changes you requested that you can squash with the original one. Or actually, should I squash them myself?

@darth10
Copy link
Collaborator

darth10 commented Dec 30, 2022

Or actually, should I squash them myself?

No worries, I'll squash them all after a quick review!

@darth10 darth10 merged commit 607aff1 into emacsorphanage:master Dec 30, 2022
@luispauloml luispauloml deleted the feat/lighter-customization branch December 30, 2022 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants