Path: utzoo!utgpu!watmath!uunet!bu-cs!purdue!mailrus!bbn!ulowell!tegra!vail From: vail@tegra.UUCP (Johnathan Vail) Newsgroups: gnu.emacs Subject: Re: Function keys in Sunview Emacs Message-ID: <468@atlas.tegra.UUCP> Date: 7 Apr 89 18:49:36 GMT References: <8904062011.AA04566@aaet.> Distribution: gnu Organization: Tegra, Inc., Billerica, MA Lines: 39 I tried mail but it bounced: In article <8904062011.AA04566@aaet.> wilensky@aaet.csc.ti.com (Harold Wilensky) writes: Does anyone know how to make use of the function keys in Emacs running under Sunview? We would like assign functionality to some of the function keys but have not determined how to specify a function key. For example I would like to use global-set-key to make the F1 key do something. How do I specify the F1 key. --Harold Wilensky, TI The way I do it is M-x describe-key (which I bound to C-x?). Then hit the function key and look below the mode line. It will tell you what the sequence is like C-x*et for the F5 key. In my .emacs file I assign a few keys this way: (global-set-key "\C-x*bt" 'eval-defun) There is probably a better way but... Also be careful when you bind these as other packages may (and do) set them the way they want them. I use window-setup-hook to bind them, hopefully after everything else is loaded. BTW on my Sun the F1 key is trapped by sunview, I think caps lock or something stupid. I don't know how to untrap it. The other F keys and R keys are re-bindable I believe. I don't think the L keys are easy though.... Hope this helps... "The crux of the biscuit, is the apostrophe" -- This is the dog talking... _____ | | Johnathan Vail | tegra!N1DXG@ulowell.edu |Tegra| (508) 663-7435 | N1DXG @ 145.110-, 444.2+, 448.625- -----