-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 skinny-samurai-theme #1472
Add skinny-samurai-theme #1472
Conversation
The hacky @deftpunk The correct way to add a face to those modes would be to write a "highlight-numbers" mode, and then your theme could provide a customisation for the |
Additionally, the code should not be modifying
And finally, the following block is wrong for 2 reasons:
Firstly, you shouldn't globally set the background color. Just modify the And secondly, |
I think we already have a package to highlight numbers in MELPA. It has the cryptic title of number-font-lock-mode |
Okay ... the law of unintended consequences strikes again; I assumed this little experiment with color themes was in a dark enough corner not to be noticed. Certainly was not intended to show up on MELPA and really don't want it to. @yasuyk: I have made changes per the comments. Plus pull those changes into your fork and submit your fork to MELPA. Let me know when you have done so, I will then take my repo off of github and put it somewhere private. @purcell: Writing a mode to highlight numbers in your buffer, instead of just creating another face, seems highly inefficient and is definitely counter-intuitive. "(un)like what many editors provide by default" Seeing its already been done makes the point mute, will remove. I cribbed the safe-local-eval-forms code to get rainbow-mode working from the following: bbatsov/zenburn-emacs#107 Will remove the window-system block, should have surmised that it works that way, makes sense when you think about it for a bit. @milkypostman : thank you for pointing out number-font-lock-mode, assuming that you are not being sarcastic. Thank you for MELPA irregardless. |
@deftpunk I apologize for troubling you. I don't intend to add this package against your will. You don't need to change repository to private. If you changed your mind in the future, You may send PR for recipe again. @milkypostman @purcell I am going to close this PR for now, right? |
Yeah I was just joking. I think what the mode does is just create a face or at least that is what I hope you would reconsider providing your theme to melpa as I love theme Best, Donald
|
I'd argue that yes, @bbatsov should also not be deciding for the user what forms are safe for local evaluation. It's really sidestepping a check that is there for the user's protection, and it's not right for a theme to unilaterally declare that |
Pretty sure the code in question was reverted shortly after it was merged. |
@milkypostman: are you being sarcastic, or do you really think the name is cryptic? In the latter case, I'll gladly rename it if you have a better idea for a name. |
@Fanael Many end-users of Emacs actually won't be familiar with the term "font-lock", since it's part of the internal elisp API, so that might be why @milkypostman felt it was a little cryptic. I might personally have picked "highlight-numbers" or something similar, but there's really no need to rename it unless you want to. |
@Fanael I was making a joke that the name is well-named but is not easy to remember. that is all. it was hard to understand as a joke but I was feeling punchy. |
Hey @deftpunk -- shall we go ahead and add this theme to MELPA now you've fixed it up, or would you still prefer that we omit it? |
Closing -- please re-open this PR if it becomes viable in the future. |
https://github.com/deftpunk/skinnySamurai
/cc @deftpunk