home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.emacs
- Path: sparky!uunet!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watserv1!mks.com!viktor
- From: viktor@mks.com (Viktor Haag)
- Subject: Re: Binding function keys on the RS/6000
- Message-ID: <1992Nov19.170107.11919@mks.com>
- Organization: Mortice Kern Systems Inc., Waterloo, Ontario, CANADA
- References: <1e8d8hINNat4@FEYNMAN.SYSTEMSY.CS.YALE.EDU> <1e8jb7INN7h2@crcnis1.unl.edu>
- Date: Thu, 19 Nov 1992 17:01:07 GMT
- Lines: 38
-
- I am -not- using an RS/6000, but I noticed that the technique I used
- here was different from yours. Included here are relevant excerpts
- from my .emacs:
-
- -------------------------
- ;
- ;key-binding map to gather function keys
- ;
- (setq functionkey-map (make-keymap))
- (define-key global-map "\e[" functionkey-map)
-
- ;function key-bindings for set one
- (define-key functionkey-map "11~" 'text-mode)
- (define-key functionkey-map "12~" 'indented-text-mode)
- (define-key functionkey-map "13~" 'nroff-mode)
- (define-key functionkey-map "14~" 'dired)
-
- ;
- ; and so forth ...
- ;
- --------------------------
-
- You'll need to know what exactly your function keys produce, but you
- can find that easily enough by hitting C-q function-key in any editing
- window.
-
- This allowed me to get around a bad-prefix error generated when I
- tried to map the keys directly; I just defined a new command prefix
- and associated map ...
-
-
-
-
- --
- Viktor Haag viktor@mks.com
- Mortice Kern Systems (519) 884-8469
- 35 King North, Waterloo, Ontario ext. 41
- "we are not thugs. we are vitamin supplements to justice ..." | a selector
-