home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Wed, 11 Nov 1992 10:51:26 EST
- Date: Wed, 11 Nov 1992 10:48:29 EST
- From: paquette%crim.ca@lucid.com (Marc Paquette)
- Message-ID: <9211111548.AA14150@mason.crim.ca>
- Subject: various lucid questions
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- Lines: 55
-
-
- "Mickey Ferguson" <mickeyf@vnet.ibm.com>, said:
-
- >
- > Now for my real questions...
- >
- > 1) I've found out how to configure the function keys and Ln and Rn keys
- > on my Sun Sparc 2. (It's set up for Lucid widgets, not OLIT, even though
- > we are running OL.) I can't figure out how to make the Copy, Paste and
- > Cut keys work with lucid. I had figured out how to make them work under
- > epoch with stuff like mouse::copy-zone as defined in motion.el (well, a
- > modified version of motion.el sent to me and further customized). Can it
- > use the OpenLook functions, and thus copy text from another Sun window
- > into lucid?
- >
-
- Here is what I use in my .emacs:
-
- ;; Taken directly from $EMACS/lisp/energize/energize-menus.el,
- ;; but modified a little bit for my personnal taste.
- (defun setup-sparc-function-keys ()
- (if (not (eq window-system 'x))
- nil
- (define-key global-map 'f29 'scroll-down) ; kp_pgup
- (define-key global-map 'f35 'scroll-up) ; kp_pgdn
- (define-key global-map 'f27 'beginning-of-line) ; kp_home
- (define-key global-map 'r13 'end-of-line) ; kp_end (for 19.2)
- (define-key global-map 'f33 'end-of-line) ; kp_end (for 19.3)
- (define-key global-map '(control f27) 'beginning-of-buffer) ; C-kp_home
- (define-key global-map '(control r13) 'end-of-buffer) ; C-kp_end (19.2)
- (define-key global-map '(control f33) 'end-of-buffer) ; C-kp_end (19.3)
- (define-key global-map '(control left) 'backward-word) ; C-kp_left
- (define-key global-map '(control right) 'forward-word) ; C-kp_right
- (define-key global-map 'f31 'other-window) ; kp_5
- (define-key global-map 'insert 'overwrite-mode) ; kp_insert
-
- (define-key global-map 'f20 'x-kill-primary-selection) ; kp_cut
- (define-key global-map 'f16 'x-copy-primary-selection) ; kp_copy
- (define-key global-map 'f18 'x-yank-clipboard-selection) ; kp_paste
- (define-key global-map 'f11 'keyboard-quit) ; kp_stop
- (define-key global-map 'f12 'repeat-complex-command) ; kp_again
- (define-key global-map 'f14 'advertised-undo) ; kp_undo
- (define-key global-map 'f19 'search-forward) ; kp_find
- (define-key global-map '(meta f19) 'search-backward) ; M-kp_find
- ))
-
- (add-hook 'window-setup-hook 'setup-sparc-function-keys)
- (setup-sparc-function-keys)
-
- --
- Marc Paquette |Centre de recherche informatique de Montreal (CRIM)
- Conseiller Technique, UN*X | 3744 rue Jean-Brillant, bureau 500
- paquette@crim.ca | Montreal (Quebec) Canada H3T 1P1
- Tel : (514) 340-5758 | Fax : (514) 340-5777
-
-