Package: Emacs Version: 30.0.50 While `major-mode-remap-alist` provides a way for users to indicate the major mode of their choice, I think we need a similar variable for the use of packages. The package below accordingly adds a new `major-mode-remap-defaults` and changes various packages to obey it or make use of it. I think it nicely cleans the regexp duplication between CC-mode and `c-ts-mode.el` and also makes it easier/cleaner for users to override the changes made by `*-ts-mode.el`. There are some FIXMEs that one might want to address, most importantly whether we should use an indirection through `major-mode-remap-defaults` for all TS modes or only for those for which we provide a non-TS mode. And there's no doc update yet. Stefan