home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!mips!sdd.hp.com!caen!destroyer!ncar!peace!zender
- From: zender@ra.cgd.ucar.edu (Charlie Zender)
- Subject: keybinding to new prefixes
- Message-ID: <1992Aug21.211649.2835@ncar.ucar.edu>
- Keywords: help, keybinding
- Sender: zender@peace (Charlie Zender)
- Organization: ncar
- Date: Fri, 21 Aug 1992 21:16:49 GMT
- Lines: 28
-
- i've tried ploughing through the manual and the FAQ for help on
- this problem, but everything i try causes an error in the init file.
-
- i want to make ctl-z be a prefix for a whole slew of commands (mainly
- to facilitate c-programming), and i've tried many variations on the
- following in my .emacs file
- ;
- (define-key ctl-map "z" 'ctl-z-prefix)
- (fset 'ctl-z-prefix ctl-z-map)
- ;
- ; macro to insert a C comment at the cursor
- ;
- (fset 'comment
- "/* */ ")
- (define-key ctl-z-map "c" 'comment)
- ;
-
- None of them work, my problem is i don't know lisp, and this is my
- first emacs "hack", so i don't know if it's even possible. if
- anyone can help, it would much appreciate it.
- thanks,
- charlie
- --
- Charlie Zender zender@pprince.colorado.edu
- Dept. Astrophysical, Planetary, Atmospheric Sci. Univ. Colorado at Boulder
- Campus Box 391 (303) 492-0260
- Boulder CO 80309-0391 "the play's the thing"
-
-