Re .mac ? why



   From: Robert Willam Grieve <sonofthejedi at xtra.co.nz>
   
   Steve Haflich wrote:
   > I suspect that little of the software associated with Maxima uses file
   > extension associations for the traditional purpose of displaying cute
   > icons, and for launching maxima when a file is clicked, so
   > associations are less important than for other application files.  But
   > one might want to add the desired extension to Emacs alist of default
   > buffer modes.  See the variable auto-mode-alist in elisp.
   
   Does this allow calling any function, or only ones associated with a 
   major-mode?

elisp and the Emacs programming environment are supposed to me
self-documenting, and if you're going to do any customization you will
need to learn how to explore that documentation.  Try

c-H v auto-mode-alist

Apropos is also extremely useful, but use it from the *scratch* window
(apropos "foo"), not "c-H a" because the latter only shows functions.

Most major modes call various hook lists upon startup, and new major
modes should also be written to do so.  See the sources for existing
major modes to learn what to do.

I'm not really familiar with the state of Maxima Emacs technology, but
modern Emacsen allow arbitrary invisible properties to be attached to
buffer text, and to display attributed text in various ways.  I
imagine such markup could solve obvious issues such as identifying the
beginning and end of input and output regions so that buffer
navigation and editing in a Maxima interacton buffer could be made
quite natural.  But implementation would not a small job.