home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / emacs / help / 3812 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.3 KB  |  40 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!mips!sdd.hp.com!caen!destroyer!ncar!peace!zender
  3. From: zender@ra.cgd.ucar.edu (Charlie Zender)
  4. Subject: keybinding to new prefixes
  5. Message-ID: <1992Aug21.211649.2835@ncar.ucar.edu>
  6. Keywords: help, keybinding
  7. Sender: zender@peace (Charlie Zender)
  8. Organization: ncar
  9. Date: Fri, 21 Aug 1992 21:16:49 GMT
  10. Lines: 28
  11.  
  12. i've tried ploughing through the manual and the FAQ for help on
  13. this problem, but everything i try causes an error in the init file.
  14.  
  15. i want to make ctl-z be a prefix for a whole slew of commands (mainly
  16. to facilitate c-programming), and i've tried many variations on the
  17. following in my .emacs file
  18. ;
  19. (define-key ctl-map "z" 'ctl-z-prefix)
  20. (fset 'ctl-z-prefix ctl-z-map)
  21. ;
  22. ; macro to insert a C comment at the cursor
  23. ;
  24. (fset 'comment
  25.    "/* */ ")
  26. (define-key ctl-z-map "c" 'comment)
  27. ;
  28.  
  29. None of them work, my problem is i don't know lisp, and this is my
  30. first emacs "hack", so i don't know if it's even possible.  if 
  31. anyone can help, it would much appreciate it.
  32. thanks,
  33. charlie
  34. -- 
  35. Charlie Zender                zender@pprince.colorado.edu
  36. Dept. Astrophysical, Planetary, Atmospheric Sci. Univ. Colorado at Boulder
  37. Campus Box 391                (303) 492-0260
  38. Boulder CO 80309-0391            "the play's the thing"
  39.  
  40.