-
Notifications
You must be signed in to change notification settings - Fork 14
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 global minor modes for features (take two) #46
Conversation
progfolio
commented
Jun 4, 2024
- exwm-core.el (exwm--define-global-minor-mode): Macro for arranging EXWM mode hooks, deprecating enabler functions, logging.
- exwm-background.el: Add global mode definition, autoloads (exwm-background-enable): remove
- exwm-randr.el (randr): as above (exwm-randr-enable): as above
- exwm-systemtray.el (systemtray): as above (exwm-systemtray-mode): as above
- exwm-xim.el (xim): as above (exwm-xim-enable): as above
- exwm-xsettings.el (xsettings): as above (exwm-xsettings-enable): as above
PROS:
CONS:
|
c0089bf
to
4c1daca
Compare
IMO, macroing the internals (as suggested by @minad in #45 (comment)) is probably going to be less painful. It may be a bit more code, but that extra code won't require knowledge of autoload cookies to understand. |
@Stebalien Yes, let's better go with the simple solution. Hopefully in the future Emacs gets a more flexible mechanism for autoload generation. |
As you wish |
4c1daca
to
6040c29
Compare
6040c29
to
f8ca057
Compare
@Stebalien @minad I took the liberty of autoloading the enable functions, too. I see no reason not to. |
I prefer if we don't do this. The enable functions are obsolete, haven't been autoloaded so far, so we should keep them not autoloaded, such that we don't encourage their use. Otherwise it looks good. I will try your PR now. |
Thanks, merged. I've also updated the commentaries and the wiki, see https://github.com/emacs-exwm/exwm/wiki/Home/_compare/54a6528040108a4e9b804bd83c3bee0644eff903...039e3503e25c5c6736e77614216a90f7f1ba5b71. |
@progfolio Just to be sure if I recall correctly, you've assigned copyright to the FSF, right? The next step will be to turn exwm-enable into a proper mode :) |
I should have papers on file for contributions to Org-mode. I have contributed to Emacs as well, but I don't recall if I had to sign separate papers or the first signing covered everything. |
Agreed here, too |
Should be the same thing. The org-mode license headers include:
|
We should be good in that case. |
I wonder whether the minor modes should be named @minad, @Stebalien: in general we should ask ELPA Maintainers to check copyright assignment for us. See https://github.com/emacs-exwm/exwm/wiki/Maintenance#check-copyright-assignment. Maybe it's not needed in this case, I defer to your judgement. @progfolio: thank you and welcome to EXWM! |
We are probably going to call
Yes, I do that in case of doubt. |