kaiwk / leetcode.el

An Emacs LeetCode client.
GNU General Public License v3.0
409 stars 73 forks source link

fix: use conventional lighter format for leetcode-solution-mode #113

Closed nverno closed 1 year ago

nverno commented 1 year ago

I noticed problems with spaces in the lighter for leetcode-solution-mode when using powerline to format the modeline. It splits the minor mode component of the mode-line by spaces which breaks the keymapping on mouse click. I cant find any documentation that explicitly warns against using spaces in minor mode lighters (although easy-mmode.el does mention the common practice of starting the lighter with a preceding space), but it seems to just be a widely adopted convention that other packages, like powerline, rely on.