home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!know!hri.com!spool.mu.edu!decwrl!pa.dec.com!heiney
- From: heiney@pa.dec.com (Bob Heiney)
- Newsgroups: comp.unix.ultrix
- Subject: Re: Key Bindings in Emacs
- Message-ID: <1992Nov13.003155.14759@PA.dec.com>
- Date: 13 Nov 92 00:31:55 GMT
- References: <BxMApC.DE1@csugrad.cs.vt.edu>
- Sender: news@PA.dec.com (News)
- Distribution: va
- Organization: Digital Equipment Corporation
- Lines: 35
-
- In article <BxMApC.DE1@csugrad.cs.vt.edu> sguyer@csugrad.cs.vt.edu
- (SCOTT GUYER) writes:
- >
- >... In particular, how do I
- >bind function keys in emacs (v 18.58.2)?
- >
- > (global-set-key "key" 'command-name)
- >
- > This is the format, but I do not know what the "key"
- >is for function keys.
-
- The quick answer:
-
- To represent control-t, key would be "\C-t". To represent the sequence
- meta !, key would be "\M-!"
-
- The way to find more complete info:
-
- Start your GNU Emacs. Type "M-x info" (that's meta-X info, usually escape
- followed by "x", then space, then "info") and press return. If you don't know
- how to use info, follow the instructions for getting help.
-
- Goto the Emacs menu. The following subtopics of the Customization topic
- might be helpful: "Key Bindings" and "Init File". If you're into complex
- customizations (e.g. translating the long escape sequences that some function
- keys generate into some emacs action), you might take a look at the vt100
- keymap setup in "lisp/term/vt100.el" (the path is relative to the emacs
- distribution, typically something like "/usr/local/emacs").
-
- /Bob
- --
- Bob Heiney ( heiney@pa.dec.com )
- Technical Consultant
- Digital Equipment Corporation, US Desktop Sales, Palo Alto, CA
- All opinions expressed are mine, and not necessarily those of my employer
-