home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!danlip
- From: danlip@cco.caltech.edu (Daniel Adam Lipofsky)
- Subject: binding funtion keys (answer not in FAQ)
- Message-ID: <1992Jul29.034810.9280@cco.caltech.edu>
- Sender: news@cco.caltech.edu
- Nntp-Posting-Host: globie
- Organization: California Institute of Technology, Pasadena
- Date: Wed, 29 Jul 1992 03:48:10 GMT
- Lines: 62
-
-
- I am working on one set of HP machines, and I want to get the
- emacs key bindings to work like the key bindings on a different
- set of HP machines which I have worked on previously. I
- managed to get the function key bindings to work by following
- the answer to FAQ #127. However, they look different from the
- ones on the good system. Also, the bindings on the good system
- could do things like Shift-F1 and Control-F3, as well as other keys
- such as Menu, Prev, Next, InsertChar. An example of the
- code is given below.
-
- Can anyone tell me
- 1) Why I can't just port the code over
- 2) What the other machine is doing (and how I can get my machine to do it)
- 3) If I can't get my machine to do it, how I can bind the function keys
- with modifiers (such as Shift-F1)
-
- An e-mail response would be best.
- Thank you,
- --danlip
-
- ===============================================================================
- System I am trying to get emacs function key bindings to work on:
- hp9000s800 machines running HP-UX 8.
- GNU Emacs 18.55.19
-
- what I did so far (which works) is
- (global-set-key "\e[" nil)
- (global-set-key "\e[11~" 'help-for-help) ;;F1
- (global-set-key "\e[12~" 'find-file) ;;F2
- (global-set-key "\e[13~" 'save-buffer) ;;F3
- ;; and so on
-
- what I did so far (which doesn't work) was copy the stuff from
- below.
-
- ===============================================================================
- System with working function key bindings:
- hp9000s300 machines running HP-UX 8 (I think).
- GNU Emacs 18.57.18
-
- the default.el file on this system contains:
- (global-set-key "\C-c~11@" 'help-for-help) ;;F1
- (global-set-key "\C-c~12@" 'find-file) ;;F2
- (global-set-key "\C-c~13@" 'save-buffer) ;;F3
- ;; and so on
- (global-set-key "\C-c~11A" 'call-last-kbd-macro) ;;shift-F1
- (global-set-key "\C-c~12A" 'start-kbd-macro) ;;F2
- (global-set-key "\C-c~13A" 'end-kbd-macro) ;;F3
- ;; and so on
- (global-set-key "\C-c~11B" 'set-mark-command) ;;meta-F1
- (global-set-key "\C-c~12B" 'set-visited-file-name) ;;F2
- (global-set-key "\C-c~13B" 'save-modified-buffers) ;;F3
- ;; and so on
- ;;Note: final char is '@' + (1 for shift) + (2 for meta) + (4 for control)
-
- ===============================================================================
-
- --
- "The calender of the Theocracy of Muntab counts down, not up. No-one knows
- why, but it might not be a good idea to hang around and find out."
- --Terry Pratchett, _Wyrd_Sisters_
-