CARL%SCU.BITNET@MITVMA.MIT.EDU (CARL FUSSELL) (06/05/89)
I wonder if someone can give me some pointers on how I should go about doing something. First, we are running Gnu Emacs 18.52 on a VAX running VMS (5.1). It works fine. For many of our users, Emacs is the editor used for composing email mesages. When Emacs is used in conjunction with MAIL, a command file (similar to script file) is executed that runs emacs. When emacs is exitted, the temp file created is loaded back into mail and "sent". What I would like to be able to do is the following. When emacs is started up via this command file (ie. via MAIL), is to execute some sort of function in which I can remap some keys and perhaps define some special functions that would be desirable under mail. For example, I would like to redefine C-X C-C to ask for a confirmation before exiting (or aborting), to include the received message in a reply, and that sort of thing. Finally, I am not a lisp programmer (quite a few other languages, but just not lisp) though am willing to learn it to accomplish this. Is there a simple skeleton or example I can look at to start? I am aware of the lisp subdirectory in the Gnuemacs distribution but many of those appear quite complicated and I would like something simple to start with (or perhaps they are simple and it is just my ignorance that makes it appear complex). Thanx for any suggestions or advice... Carl Fussell Santa Clara University CARL@SCU.BITNET