home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / emacs / help / 5095 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.1 KB  |  28 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!gatech!news.byu.edu!ux1!mica.inel.gov!guinness!guinness.idbsu.edu!alex
  3. From: alex@math.idbsu.edu (Alex Feldman)
  4. Subject: keybindings as in Auc-TeX
  5. Message-ID: <ALEX.92Dec15101115@diamond.idbsu.edu>
  6. Sender: usenet@guinness.idbsu.edu (Usenet News mail)
  7. Nntp-Posting-Host: diamond
  8. Organization: Boise State University Math Dept.
  9. Date: 15 Dec 92 10:11:15
  10. Lines: 16
  11.  
  12. I would like to bind some macros to keys similarly to the way things
  13. are bound in the LaTeX-math-mode of Auc-TeX.  Specifically, in there I
  14. can type `a (that's supposed to be a backquote followed by an a; I did
  15. not mistype `a') and it will expand in the buffer to \alpha.  No
  16. control or meta sequences or anything else to worry about.
  17.  
  18. I would like to do this for a completely different, personalized mode,
  19. but I can't seem to extract the germ of the procedure for doing so.
  20. If it is possible to do this in a few lines of lisp, would some kind
  21. soul send me the code that does it?  The expansion shown above would
  22. be fine, or just a generic keymap for the extended command "mymacro"
  23. to the (two) key sequence ";c".
  24.  
  25. Thanks.
  26. --
  27.     --alex            alex@math.idbsu.edu
  28.