;; *** Function Keys ***
;; F1 invokes help
(global-set-key [f1] 'help-command)
;; F2 is undo
(global-set-key [f2] 'undo)
;; F3 is find-file (that's the Open command for you newbies)
;; From the sample.emacs in XEmacs:
;;     Note: it does not currently work to say
;;         (global-set-key 'f3 "\C-x\C-f")
;;     The reason is that macros can't do interactive things properly.
;;     This is an extremely longstanding bug in Emacs. Eventually,
;;     it will be fixed. (Hopefully...)
(global-set-key [f3] 'find-file)
;; F4 is mark
(global-set-key [f4] 'set-mark-command)
;; F5 is copy
(global-set-key [f5] "\M-w")
;; F6 is paste
(global-set-key [f6] "\C-y")
;; Shift-F4 is pop mark off of stack
(global-set-key [(shift f4)] (lambda () (interactive) (set-mark-command t)))
;; F7 is save-buffer
(global-set-key [f7] 'save-buffer)
;; F8 is start macro
(global-set-key [f8] 'start-kbd-macro)
;; F9 is end macro
(global-set-key [f9] 'end-kbd-macro)
;; F10 is execute macro
(global-set-key [f10] 'call-last-kbd-macro)
