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

Optional mode-line prefix string to help identify mode-line-misc-info entry #5

Closed
shipmints opened this issue Jul 26, 2024 · 2 comments

Comments

@shipmints
Copy link
Contributor

I set mine to

  (setq mode-line-debug-prefix "🐞")

PR incoming.

@tarsius
Copy link
Owner

tarsius commented Jul 26, 2024

That's cute, but IMO it's neither necessary nor sufficient.

Another user may wish to append something, or put something before and after the three characters, or capitalize them, or format them differently altogether. I don't want to cover one random variant nor make this super flexible.

You can achieve the same using a simple advice:

(define-advice mode-line-debug-control (:around (fn) ladybird)
  (cons "🐞" (funcall fn)))

@shipmints
Copy link
Contributor Author

Alrighty, then. Advice taken and implemented.

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

2 participants