>>> "EA" == Eric Abrahamsen writes: > Uwe Brauer writes: >>> Uwe Brauer writes: >> >>> Yes. If you want it to guess correctly you'll have to override the ".m" >>> entry in `mailcap-mime-extensions'. >> >> There is no ".m" entry! >> I just checked this variable is set by good old defvar and not >> defcustom, sigh > You're right! That must be getting picked up from my system somewhere. > You should feel free to push your own cons onto this variable, or use a > ~/.mime.types file if you want to set this association for more than > just Emacs. The contents of that file will get merged with > `mailcap-mime-extensions'. I believe the file format is one line per > association, looking like: > .m text/x-foo That did not work > See the docstring and code comments of the `mailcap-parse-mimetypes' > function for a bunch of different ways to specify your mimetype > associations. I finally did the following (add-to-list 'mailcap-mime-extensions '(".m" . "text/x-matlab")) And everything is good.