Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!bbn!ulowell!tegra!vail From: vail@tegra.UUCP (Johnathan Vail) Newsgroups: gnu.emacs Subject: Re: Novice .emacs question Message-ID: <641@atlas.tegra.UUCP> Date: 5 Sep 89 14:26:42 GMT References: <21843@cup.portal.com> Distribution: usa Organization: Tegra-Varityper, Inc., Billerica, MA Lines: 30 In-reply-to: dsmythe@cup.portal.com's message of 3 Sep 89 23:43:34 GMT In article <21843@cup.portal.com> dsmythe@cup.portal.com (dave l smythe) writes: Hi. I'd like to map some functions to my Sun function keys but can't seem to get it to work from .emacs. When I try C-h c on an unchanged F9 key, it says something to the effect that C-X * i t has nothing mapped to it. When I use something of the form (global-set-key "\C-x*it" ...) in .emacs, there seems to be no effect. I tries making a local copy of sun-keys.el and modifying the keymap with the Rn keys (arrow keys) The problem is that there are other things loaded after .emacs that will change things on you. There are more elegant ways to fix it but here is my work-around to set Sun function keys: (defun kluge-start () "do the inits that can't be done in the init file (bletch!)" (global-set-key "\C-x*bt" 'eval-defun)) ; F2 key, mint 'try-it' (setq window-setup-hook 'kluge-start) "... until then, any action will be like trying to herd cats." -- Gene Spafford _____ | | Johnathan Vail | tegra!N1DXG@ulowell.edu |Tegra| (508) 663-7435 | N1DXG@145.110-,145.270-,444.2+,448.625- -----