Craig STCR <craig.st...@gmail.com> writes: > On 5/20/22 9:44 PM, Ihor Radchenko wrote: >> However, I am not sure what to do on Windows/Mac. > Maybe try a quick-and-dirty, cross-platform solution that checks > non-binary files for a first-line shebang? Could use existing Emacs > hooks that determine major-mode when opening files.
Good idea. Currently, Org only supports auto-mode-alist (see org-file-apps docstring) checking the filename. I think that the same option can be extended to use magic-mode-alist and such. I will leave it for others to implement. Patches are welcome! Best, Ihor