Emacs initialisation query
(If it matters, I'm using xemacs 21).
I want to define a function key to run a macro.
I can do it within a session:
ESC x global-set-key RET <f9> eif-indent-buffer RET
but I can't get it to work in the initialisation file ~/.emacs:
(defalias 'eif-indent-buffer (read-kbd-macro
"ESC x mark- whole- buffer RET ESC x eif- indent- region RET"))
(global-set-key <f9> 'eif-indent-buffer)
What should I put for <f9>? I've tried "f9", <f9>, "<f9>", (<f9>) and it
doesn't like any of them. I can't see anything about it in the docs either.
--
Oliver Elphick Oliver.Elphick@lfix.co.uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Every good gift and every perfect gift is from above,
coming down from the Father of the heavenly lights,
who does not change like shifting shadows."
James 1:17
Reply to: