[comp.emacs] Binding Sparc Function Keys

sbchanin@wheaties.ai.mit.edu (Steve Chanin) (07/14/90)

     I'm running epoch (Emacs 18.55 with enhanced X support) on a
Sparc and I'd like to be able to bind the machine's function keys to
emacs functions, but I'm not sure how to specify them, i.e.
	(global-set-key "WHAT-GOES-HERE" 'find-file)
but I don't know what to put between the quotes for F1 (for example).
If anyone out there has done this, I'd appreciate finding out how
(theory is ok, but example elisp code would be especially welcome).
Either email me directly (sbchanin@ai.mit.edu) or reply to the net.

Thanks,
Steve
-- 
===============================================================================
DOMAIN: sbchanin@ai.mit.edu
USMAIL: Steven Chanin, 1010 Mass Ave #57, Cambridge, Ma 02138
PHONE : (617) 876-1950

baur@venice.SEDD.TRW.COM (Steven L. Baur) (07/15/90)

From article <9420@rice-chex.ai.mit.edu>, by sbchanin@wheaties.ai.mit.edu (Steve Chanin):
> 
>      I'm running epoch (Emacs 18.55 with enhanced X support) on a
> Sparc and I'd like to be able to bind the machine's function keys to
> emacs functions, but I'm not sure how to specify them, i.e.
> 	(global-set-key "WHAT-GOES-HERE" 'find-file)
> but I don't know what to put between the quotes for F1 (for example).
> If anyone out there has done this, I'd appreciate finding out how
> (theory is ok, but example elisp code would be especially welcome).
> Either email me directly (sbchanin@ai.mit.edu) or reply to the net.


From my .emacs (all extraneous stuff removed):

(global-set-key "\C-Xn" 'other-window)
(global-set-key "\C-Xp" 'prev-window)
;;; (global-set-key "\C-h" 'delete-backward-char)
(global-set-key "\C-X\C-E" 'compile)
(global-set-key "\C-X\C-I" 'insert-file)
(global-set-key "\C-T" 'my-transpose-chars)
	(global-set-key "\C-[[29~" 'execute-extended-command)
	(global-set-key "\C-[[1~" 're-search-forward)
	(global-set-key "\C-[[2~" 'yank)
	(global-set-key "\C-[[3~" 'kill-region)
	(global-set-key "\C-[[4~" 'set-mark-command)
	(global-set-key "\C-[[5~" 'scroll-down)
	(global-set-key "\C-[[6~" 'scroll-up)
	(global-set-key "\C-X\C-C" 'exit-emacs))
    (global-set-key "\C-X\C-C" 'exit-emacs)
(global-set-key "\C-?" 'delete-backward-char)


--
steve	baur@venice.SEDD.TRW.COM