This should fix issue #13 (just tested it with an org-mode file), for which there is (as usual) already a mechanism in Emacs :)
auto-mode-alist can have an entry that only strips off the extension and then redoes the search. I add/delq such an entry analogous with the handler entry itself.
Minor change in the latter's regexp: "\\'" at the end is better than "\\$", as it also works with multi-line file names (which are uncommon but legal).
This should fix issue #13 (just tested it with an org-mode file), for which there is (as usual) already a mechanism in Emacs :)
auto-mode-alist
can have an entry that only strips off the extension and then redoes the search. I add/delq such an entry analogous with the handler entry itself.Minor change in the latter's regexp: "\\'" at the end is better than "\\$", as it also works with multi-line file names (which are uncommon but legal).